summaryrefslogtreecommitdiff
path: root/includes/specials/SpecialUnusedtemplates.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/specials/SpecialUnusedtemplates.php')
-rw-r--r--includes/specials/SpecialUnusedtemplates.php16
1 files changed, 6 insertions, 10 deletions
diff --git a/includes/specials/SpecialUnusedtemplates.php b/includes/specials/SpecialUnusedtemplates.php
index e5c55b83..06077d1f 100644
--- a/includes/specials/SpecialUnusedtemplates.php
+++ b/includes/specials/SpecialUnusedtemplates.php
@@ -42,9 +42,9 @@ class UnusedtemplatesPage extends QueryPage {
function getQueryInfo() {
return array (
'tables' => array ( 'page', 'templatelinks' ),
- 'fields' => array ( 'page_namespace AS namespace',
- 'page_title AS title',
- 'page_title AS value' ),
+ '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 ),
@@ -68,17 +68,13 @@ class UnusedtemplatesPage extends QueryPage {
array( 'redirect' => 'no' )
);
$wlhLink = Linker::linkKnown(
- SpecialPage::getTitleFor( 'Whatlinkshere' ),
- wfMsgHtml( 'unusedtemplateswlh' ),
- array(),
- array( 'target' => $title->getPrefixedText() )
+ SpecialPage::getTitleFor( 'Whatlinkshere', $title->getPrefixedText() ),
+ $this->msg( 'unusedtemplateswlh' )->escaped()
);
return $this->getLanguage()->specialList( $pageLink, $wlhLink );
}
function getPageHeader() {
- return wfMsgExt( 'unusedtemplatestext', array( 'parse' ) );
+ return $this->msg( 'unusedtemplatestext' )->parseAsBlock();
}
-
}
-