From 1282808587ba06ce77ccc4850128f087787ea0a6 Mon Sep 17 00:00:00 2001 From: Ilmari Karonen Date: Sun, 2 Jul 2006 18:58:18 +0000 Subject: [PATCH] new 'allpagesbadtitle' message for Special:Allpages, based on 'badtitletext' --- RELEASE-NOTES | 1 + includes/SpecialAllpages.php | 2 +- includes/SpecialPrefixindex.php | 2 +- languages/Messages.php | 1 + 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 761d0b265f..b1834fa722 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -627,6 +627,7 @@ Some default configuration options have changed: * (bug 4037) Make input handling in Special:Allpages and Special:Prefixindex more consistent: Accept just a namespace prefix and a colon, reject input with interwiki prefixes, otherwise do what Title::makeTitleSafe() does. +* New 'allpagesbadtitle' message for Special:Allpages, based on 'badtitletext'. == Compatibility == diff --git a/includes/SpecialAllpages.php b/includes/SpecialAllpages.php index 7be9e04a92..47682cbaaa 100644 --- a/includes/SpecialAllpages.php +++ b/includes/SpecialAllpages.php @@ -221,7 +221,7 @@ function showChunk( $namespace = NS_MAIN, $from, $including = false ) { $fromList = $this->getNamespaceKeyAndText($namespace, $from); if ( !$fromList ) { - $out = wfMsgWikiHtml( 'badtitletext' ); + $out = wfMsgWikiHtml( 'allpagesbadtitle' ); } else { list( $namespace, $fromKey, $from ) = $fromList; diff --git a/includes/SpecialPrefixindex.php b/includes/SpecialPrefixindex.php index a0b30bdaaf..ebaff98f11 100644 --- a/includes/SpecialPrefixindex.php +++ b/includes/SpecialPrefixindex.php @@ -68,7 +68,7 @@ function showChunk( $namespace = NS_MAIN, $prefix, $including = false, $from = n $prefixList = $this->getNamespaceKeyAndText($namespace, $prefix); if ( !$prefixList || !$fromList ) { - $out = wfMsgWikiHtml( 'badtitletext' ); + $out = wfMsgWikiHtml( 'allpagesbadtitle' ); } else { list( $namespace, $prefixKey, $prefix ) = $prefixList; list( $fromNs, $fromKey, $from ) = $fromList; diff --git a/languages/Messages.php b/languages/Messages.php index 132453f06e..ddbdd88238 100644 --- a/languages/Messages.php +++ b/languages/Messages.php @@ -1015,6 +1015,7 @@ You can narrow down the view by selecting a log type, the user name, or the affe 'allpagesnext' => 'Next', 'allpagessubmit' => 'Go', 'allpagesprefix' => 'Display pages with prefix:', +'allpagesbadtitle' => 'The given page title was invalid or had an inter-language or inter-wiki prefix. It may contain one more characters which cannot be used in titles.', # E this user # -- 2.20.1