diff options
author | Mario Vavti <mario@mariovavti.com> | 2018-09-05 14:44:06 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2018-09-05 14:44:06 +0200 |
commit | ea381d918021a33a73df40de95fd0c57f0edc5c2 (patch) | |
tree | 26cb7408c2a2fa29ab3c245584c87360d17b3195 /Zotlabs/Widget/Cover_photo.php | |
parent | 4f82428a207d426a5cace7c3749655b391e6c156 (diff) | |
download | volse-hubzilla-ea381d918021a33a73df40de95fd0c57f0edc5c2.tar.gz volse-hubzilla-ea381d918021a33a73df40de95fd0c57f0edc5c2.tar.bz2 volse-hubzilla-ea381d918021a33a73df40de95fd0c57f0edc5c2.zip |
move str_replace inside if clause
Diffstat (limited to 'Zotlabs/Widget/Cover_photo.php')
-rw-r--r-- | Zotlabs/Widget/Cover_photo.php | 2 |
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('@','@',$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( |