From: <var...@us...> - 2021-09-20 09:24:13
|
Revision: 10579 http://sourceforge.net/p/phpwiki/code/10579 Author: vargenau Date: 2021-09-20 09:24:11 +0000 (Mon, 20 Sep 2021) Log Message: ----------- Remove useless local variable Modified Paths: -------------- trunk/lib/plugin/YouTube.php Modified: trunk/lib/plugin/YouTube.php =================================================================== --- trunk/lib/plugin/YouTube.php 2021-09-20 09:22:59 UTC (rev 10578) +++ trunk/lib/plugin/YouTube.php 2021-09-20 09:24:11 UTC (rev 10579) @@ -177,13 +177,12 @@ $height = 60; } // img: http://img.youtube.com/vi/KKTDRqQtPO8/2.jpg or 0.jpg - $link = HTML::a(array('href' => $url), + return HTML::a(array('href' => $url), HTML::img(array('src' => "http://img.youtube.com/vi/" . $v . "/" . (($size == 'large') ? "0" : "2") . ".jpg", 'width' => $width, 'height' => $height, 'alt' => "YouTube video $v"))); - return $link; } $object = HTML::object(array('class' => 'inlineobject', 'width' => $width, This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |