Make declaration compatible with QueryPage::formatResult
[lhc/web/wiklou.git] / includes / SpecialUncategorizedimages.php
index 3815697..51f695d 100644 (file)
@@ -28,7 +28,7 @@ class UncategorizedImagesPage extends QueryPage {
        
        function getSQL() {
                $dbr =& wfGetDB( DB_SLAVE );
-               extract( $dbr->tableNames( 'page', 'categorylinks' ) );
+               list( $page, $categorylinks ) = $dbr->tableNamesN( 'page', 'categorylinks' );
                $ns = NS_IMAGE;
 
                return "SELECT 'Uncategorizedimages' AS type, page_namespace AS namespace,
@@ -37,7 +37,7 @@ class UncategorizedImagesPage extends QueryPage {
                                WHERE cl_from IS NULL AND page_namespace = {$ns} AND page_is_redirect = 0";
        }
        
-       function formatResult( &$skin, $row ) {
+       function formatResult( $skin, $row ) {
                global $wgContLang;
                $title = Title::makeTitleSafe( NS_IMAGE, $row->title );
                $label = htmlspecialchars( $wgContLang->convert( $title->getText() ) );