From 399a5278309ec5fa8425703f821d24608e83121b Mon Sep 17 00:00:00 2001 From: Rob Church Date: Tue, 19 Jun 2007 15:06:15 +0000 Subject: [PATCH] * Support wiki text in all query page headers * Add 'Orphanedpages' as an alias to Special:Lonelypages --- RELEASE-NOTES | 3 ++- includes/SpecialBrokenRedirects.php | 3 +-- includes/SpecialDeadendpages.php | 2 +- includes/SpecialDisambiguations.php | 3 +-- includes/SpecialDoubleRedirects.php | 3 +-- includes/SpecialLonelypages.php | 2 +- includes/SpecialUnusedcategories.php | 2 +- includes/SpecialUnusedtemplates.php | 3 +-- languages/messages/MessagesEn.php | 2 +- 9 files changed, 10 insertions(+), 13 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 9ce5fb04e1..cc97ddb038 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -87,7 +87,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * On reupload, add a null revision to the image description page * Group log output by date * Kurdish interface latin/arabic writing system with transliteration -* Allow wikilinks in header of Special:Withoutinterwiki +* Support wiki text in all query page headers +* Add 'Orphanedpages' as an alias to Special:Lonelypages == Bugfixes since 1.10 == diff --git a/includes/SpecialBrokenRedirects.php b/includes/SpecialBrokenRedirects.php index 208a7e1fd3..851ff0a64b 100644 --- a/includes/SpecialBrokenRedirects.php +++ b/includes/SpecialBrokenRedirects.php @@ -20,8 +20,7 @@ class BrokenRedirectsPage extends PageQueryPage { function isSyndicated() { return false; } function getPageHeader( ) { - global $wgOut; - return $wgOut->parse( wfMsg( 'brokenredirectstext' ) ); + return wfMsgExt( 'brokenredirectstext', array( 'parse' ) ); } function getSQL() { diff --git a/includes/SpecialDeadendpages.php b/includes/SpecialDeadendpages.php index 48d27addf9..296c8e8064 100644 --- a/includes/SpecialDeadendpages.php +++ b/includes/SpecialDeadendpages.php @@ -15,7 +15,7 @@ class DeadendPagesPage extends PageQueryPage { } function getPageHeader() { - return '

' . wfMsg('deadendpagestext') . '

'; + return wfMsgExt( 'deadendpagestext', array( 'parse' ) ); } /** diff --git a/includes/SpecialDisambiguations.php b/includes/SpecialDisambiguations.php index da0562ab19..52e7045362 100644 --- a/includes/SpecialDisambiguations.php +++ b/includes/SpecialDisambiguations.php @@ -15,8 +15,7 @@ class DisambiguationsPage extends PageQueryPage { function getPageHeader( ) { - global $wgOut; - return $wgOut->parse( wfMsg( 'disambiguations-text' ) ); + return wfMsgExt( 'disambiguations-text', array( 'parse' ) ); } function getSQL() { diff --git a/includes/SpecialDoubleRedirects.php b/includes/SpecialDoubleRedirects.php index e7b355c586..553daa945a 100644 --- a/includes/SpecialDoubleRedirects.php +++ b/includes/SpecialDoubleRedirects.php @@ -19,8 +19,7 @@ class DoubleRedirectsPage extends PageQueryPage { function isSyndicated() { return false; } function getPageHeader( ) { - #FIXME : probably need to add a backlink to the maintenance page. - return '

'.wfMsg("doubleredirectstext")."


\n"; + return wfMsgExt( 'doubleredirectstext', array( 'parse' ) ); } function getSQLText( &$dbr, $namespace = null, $title = null ) { diff --git a/includes/SpecialLonelypages.php b/includes/SpecialLonelypages.php index 430af7a763..01e3277504 100644 --- a/includes/SpecialLonelypages.php +++ b/includes/SpecialLonelypages.php @@ -15,7 +15,7 @@ class LonelyPagesPage extends PageQueryPage { return "Lonelypages"; } function getPageHeader() { - return '

' . wfMsg('lonelypagestext') . '

'; + return wfMsgExt( 'lonelypagestext', array( 'parse' ) ); } function sortDescending() { diff --git a/includes/SpecialUnusedcategories.php b/includes/SpecialUnusedcategories.php index 5cd3406bb4..3ec23f50f9 100644 --- a/includes/SpecialUnusedcategories.php +++ b/includes/SpecialUnusedcategories.php @@ -15,7 +15,7 @@ class UnusedCategoriesPage extends QueryPage { } function getPageHeader() { - return '

' . wfMsg('unusedcategoriestext') . '

'; + return wfMsgExt( 'unusedcategoriestext', array( 'parse' ) ); } function getSQL() { diff --git a/includes/SpecialUnusedtemplates.php b/includes/SpecialUnusedtemplates.php index 8b72e8a7dc..26bf48cb4d 100644 --- a/includes/SpecialUnusedtemplates.php +++ b/includes/SpecialUnusedtemplates.php @@ -37,8 +37,7 @@ class UnusedtemplatesPage extends QueryPage { } function getPageHeader() { - global $wgOut; - return $wgOut->parse( wfMsg( 'unusedtemplatestext' ) ); + return wfMsgExt( 'unusedtemplatestext', array( 'parse' ) ); } } diff --git a/languages/messages/MessagesEn.php b/languages/messages/MessagesEn.php index 711dc017a1..cc9ff677f2 100644 --- a/languages/messages/MessagesEn.php +++ b/languages/messages/MessagesEn.php @@ -364,7 +364,7 @@ $specialPageAliases = array( 'Listusers' => array( 'Listusers', 'Userlist' ), 'Statistics' => array( 'Statistics' ), 'Randompage' => array( 'Random', 'Randompage' ), - 'Lonelypages' => array( 'Lonelypages' ), + 'Lonelypages' => array( 'Lonelypages', 'Orphanedpages' ), 'Uncategorizedpages' => array( 'Uncategorizedpages' ), 'Uncategorizedcategories' => array( 'Uncategorizedcategories' ), 'Uncategorizedimages' => array( 'Uncategorizedimages' ), -- 2.20.1