aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Widget
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-09-05 14:44:06 +0200
committerMario Vavti <mario@mariovavti.com>2018-09-05 14:44:06 +0200
commitea381d918021a33a73df40de95fd0c57f0edc5c2 (patch)
tree26cb7408c2a2fa29ab3c245584c87360d17b3195 /Zotlabs/Widget
parent4f82428a207d426a5cace7c3749655b391e6c156 (diff)
downloadvolse-hubzilla-ea381d918021a33a73df40de95fd0c57f0edc5c2.tar.gz
volse-hubzilla-ea381d918021a33a73df40de95fd0c57f0edc5c2.tar.bz2
volse-hubzilla-ea381d918021a33a73df40de95fd0c57f0edc5c2.zip
move str_replace inside if clause
Diffstat (limited to 'Zotlabs/Widget')
-rw-r--r--Zotlabs/Widget/Cover_photo.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Widget/Cover_photo.php b/Zotlabs/Widget/Cover_photo.php
index 965566523..955048992 100644
--- a/Zotlabs/Widget/Cover_photo.php
+++ b/Zotlabs/Widget/Cover_photo.php
@@ -53,9 +53,9 @@ class Cover_photo {
$subtitle = str_replace('@','&#x40;',$channel['xchan_addr']);
$c = get_cover_photo($channel_id,'html');
- $c = str_replace('src=', 'data-src=', $c);
if($c) {
+ $c = str_replace('src=', 'data-src=', $c);
$photo_html = (($style) ? str_replace('alt=',' style="' . $style . '" alt=',$c) : $c);
$o = replace_macros(get_markup_template('cover_photo_widget.tpl'),array(