From: Jack Phoenix Date: Thu, 12 May 2011 11:51:53 +0000 (+0000) Subject: follow-up to r87584: remove a call to no-op function ImageGallery::useSkin() in Image... X-Git-Tag: 1.31.0-rc.0~30273 X-Git-Url: http://git.cyclocoop.org//%27%40script%40/%27?a=commitdiff_plain;h=0a7cd36946b78a6134ba42eae5706c5df0fbb205;p=lhc%2Fweb%2Fwiklou.git follow-up to r87584: remove a call to no-op function ImageGallery::useSkin() in ImageQueryPage.php --- diff --git a/includes/ImageQueryPage.php b/includes/ImageQueryPage.php index aa9b6a6e9c..1edba7f87e 100644 --- a/includes/ImageQueryPage.php +++ b/includes/ImageQueryPage.php @@ -14,7 +14,7 @@ abstract class ImageQueryPage extends QueryPage { * OutputPage * * @param $out OutputPage to print to - * @param $skin Skin: user skin to use + * @param $skin Skin: user skin to use [unused] * @param $dbr Database (read) connection to use * @param $res Integer: result pointer * @param $num Integer: number of available result rows @@ -23,7 +23,6 @@ abstract class ImageQueryPage extends QueryPage { protected function outputResults( $out, $skin, $dbr, $res, $num, $offset ) { if( $num > 0 ) { $gallery = new ImageGallery(); - $gallery->useSkin( $skin ); # $res might contain the whole 1,000 rows, so we read up to # $num [should update this to use a Pager] @@ -31,7 +30,7 @@ abstract class ImageQueryPage extends QueryPage { $namespace = isset( $row->namespace ) ? $row->namespace : NS_FILE; $title = Title::makeTitleSafe( $namespace, $row->title ); if ( $title instanceof Title && $title->getNamespace() == NS_FILE ) { - $gallery->add( $title, $this->getCellHtml( $row ) ); + $gallery->add( $title, $this->getCellHtml( $row ) ); } }