http://www.mediawiki.org/wiki/Special:Code/MediaWiki/87905

Revision: 87905
Author:   ashley
Date:     2011-05-12 11:51:53 +0000 (Thu, 12 May 2011)
Log Message:
-----------
follow-up to r87584: remove a call to no-op function ImageGallery::useSkin() in 
ImageQueryPage.php

Modified Paths:
--------------
    trunk/phase3/includes/ImageQueryPage.php

Modified: trunk/phase3/includes/ImageQueryPage.php
===================================================================
--- trunk/phase3/includes/ImageQueryPage.php    2011-05-12 11:46:22 UTC (rev 
87904)
+++ trunk/phase3/includes/ImageQueryPage.php    2011-05-12 11:51:53 UTC (rev 
87905)
@@ -14,7 +14,7 @@
         * 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 @@
        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 @@
                                $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 ) );
                                }
                        }
 


_______________________________________________
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to