Wikia code/includes/specials/SpecialWantedfiles.php
Appearance
This page is obsolete. It is being retained for archival purposes. It may document extensions or features that are obsolete and/or no longer supported. Do not rely on the information here being up-to-date. The information shown below refers to the now unmaintained 1.16 MediaWiki release. The current stable release number is 1.42.3. |
--- 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;
}
}