From 72e90545454c0e014318fa3c81658e035aac58c1 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Wed, 10 Jun 2009 13:00:47 +0200 Subject: applying patch to version 1.15.0 --- includes/specials/SpecialWantedpages.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'includes/specials/SpecialWantedpages.php') 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 ); } } -- cgit v1.2.3-54-g00ecf