move str_replace inside if clause
This commit is contained in:
parent
4f82428a20
commit
ea381d9180
@ -53,9 +53,9 @@ class Cover_photo {
|
|||||||
$subtitle = str_replace('@','@',$channel['xchan_addr']);
|
$subtitle = str_replace('@','@',$channel['xchan_addr']);
|
||||||
|
|
||||||
$c = get_cover_photo($channel_id,'html');
|
$c = get_cover_photo($channel_id,'html');
|
||||||
$c = str_replace('src=', 'data-src=', $c);
|
|
||||||
|
|
||||||
if($c) {
|
if($c) {
|
||||||
|
$c = str_replace('src=', 'data-src=', $c);
|
||||||
$photo_html = (($style) ? str_replace('alt=',' style="' . $style . '" alt=',$c) : $c);
|
$photo_html = (($style) ? str_replace('alt=',' style="' . $style . '" alt=',$c) : $c);
|
||||||
|
|
||||||
$o = replace_macros(get_markup_template('cover_photo_widget.tpl'),array(
|
$o = replace_macros(get_markup_template('cover_photo_widget.tpl'),array(
|
||||||
|
Reference in New Issue
Block a user