X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialUnusedtemplates.php;h=0c2b8707085eb5d82cf1f37f3e185a780017ea83;hb=2c9194d02086a98ea457a88f3e897fd789dd90d9;hp=1dc9f420e96ba7a38b72c17b02541c97aa9b2fc6;hpb=cbec306bba11d8d62e873586d78b9e384f95ec82;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialUnusedtemplates.php b/includes/specials/SpecialUnusedtemplates.php index 1dc9f420e9..0c2b870708 100644 --- a/includes/specials/SpecialUnusedtemplates.php +++ b/includes/specials/SpecialUnusedtemplates.php @@ -30,7 +30,6 @@ * @ingroup SpecialPage */ class UnusedtemplatesPage extends QueryPage { - function __construct( $name = 'Unusedtemplates' ) { parent::__construct( $name ); } @@ -50,12 +49,16 @@ class UnusedtemplatesPage extends QueryPage { function getQueryInfo() { return array( 'tables' => array( 'page', 'templatelinks' ), - 'fields' => array( 'namespace' => 'page_namespace', - 'title' => 'page_title', - 'value' => 'page_title' ), - 'conds' => array( 'page_namespace' => NS_TEMPLATE, - 'tl_from IS NULL', - 'page_is_redirect' => 0 ), + 'fields' => array( + 'namespace' => 'page_namespace', + 'title' => 'page_title', + 'value' => 'page_title' + ), + 'conds' => array( + 'page_namespace' => NS_TEMPLATE, + 'tl_from IS NULL', + 'page_is_redirect' => 0 + ), 'join_conds' => array( 'templatelinks' => array( 'LEFT JOIN', array( 'tl_title = page_title', 'tl_namespace = page_namespace' ) ) ) @@ -79,6 +82,7 @@ class UnusedtemplatesPage extends QueryPage { SpecialPage::getTitleFor( 'Whatlinkshere', $title->getPrefixedText() ), $this->msg( 'unusedtemplateswlh' )->escaped() ); + return $this->getLanguage()->specialList( $pageLink, $wlhLink ); }