Skip to content

Commit

Permalink
Syntax Korrektur
Browse files Browse the repository at this point in the history
  • Loading branch information
gamma committed Oct 26, 2020
1 parent b3de1e5 commit 8b9e23c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions renderer.php
Expand Up @@ -458,12 +458,12 @@ function _media($src, $title = null, $align = null, $w = null,
}

$ret = parent::_media($src, $title, $align, $w, $h, $cache, $render);
if ( count($srcset) > 0 )
if ( count($srcset) > 0 ) {
$srcset[] = ml($src, array('w' => $w, 'h' => $h, 'cache' => $cache, 'rev'=>$this->_getLastMediaRevisionAt($src))) . ' 1x';
return str_replace("/>", ' srcset="' . implode(',', $srcset) . '" />', $ret );
else
return $ret;

} else {
return $ret;
}
}
}

Expand Down

0 comments on commit 8b9e23c

Please sign in to comment.