Wikia code/includes/specials/SpecialWantedfiles.php

From MediaWiki.org
Jump to: navigation, search
--- D:\Programming\SVN\mediawiki\branches\REL1_16\phase3\includes\specials\SpecialWantedfiles.php       2011-07-18 22:31:17.695312500 +0100
+++ D:\Programming\SVN\wikia\trunk\includes\specials\SpecialWantedfiles.php     2011-08-17 15:28:16.341796900 +0100
@@ -23,8 +23,7 @@
                $dbr = wfGetDB( DB_SLAVE );
                list( $imagelinks, $page ) = $dbr->tableNamesN( 'imagelinks', 'page' );
                $name = $dbr->addQuotes( $this->getName() );
-               return
-                       "
+               $sql = "
                        SELECT
                                $name as type,
                                " . NS_FILE . " as namespace,
@@ -35,6 +34,8 @@
                        WHERE page_title IS NULL
                        GROUP BY il_to
                        ";
+               wfRunHooks( 'WantedFiles::getSQL', array( &$sql, &$this, $name, $imagelinks, $page ) ); // wikia: Bartek
+               return $sql;
        }
 }