diff options
Diffstat (limited to 'includes/specials/SpecialWantedpages.php')
-rw-r--r-- | includes/specials/SpecialWantedpages.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/includes/specials/SpecialWantedpages.php b/includes/specials/SpecialWantedpages.php index 10133409..7307b335 100644 --- a/includes/specials/SpecialWantedpages.php +++ b/includes/specials/SpecialWantedpages.php @@ -31,8 +31,7 @@ class WantedPagesPage extends QueryPage { $dbr = wfGetDB( DB_SLAVE ); $pagelinks = $dbr->tableName( 'pagelinks' ); $page = $dbr->tableName( 'page' ); - return - "SELECT 'Wantedpages' AS type, + $sql = "SELECT 'Wantedpages' AS type, pl_namespace AS namespace, pl_title AS title, COUNT(*) AS value @@ -46,6 +45,9 @@ class WantedPagesPage extends QueryPage { AND pg2.page_namespace != 8 GROUP BY pl_namespace, pl_title HAVING COUNT(*) > $count"; + + wfRunHooks( 'WantedPages::getSQL', array( &$this, &$sql ) ); + return $sql; } /** @@ -83,7 +85,7 @@ class WantedPagesPage extends QueryPage { return wfSpecialList( $pageLink, $this->makeWlhLink( $title, $skin, $result ) ); } else { $tsafe = htmlspecialchars( $result->title ); - return "Invalid title in result set; {$tsafe}"; + return wfMsg( 'wantedpages-badtitle', $tsafe ); } } |