From 41d47342351d8e4350cdfc35261108ab1532a980 Mon Sep 17 00:00:00 2001 From: Raimond Spekking Date: Wed, 5 Mar 2008 16:42:56 +0000 Subject: [PATCH] Two fixes, thanks to Simetrical --- includes/SpecialSpecialpages.php | 4 ++-- languages/messages/MessagesDe.php | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/includes/SpecialSpecialpages.php b/includes/SpecialSpecialpages.php index 24be9aad36..94547ff414 100644 --- a/includes/SpecialSpecialpages.php +++ b/includes/SpecialSpecialpages.php @@ -33,14 +33,14 @@ function wfSpecialSpecialpages() { # Parse the template and create a localized wikitext page foreach ( explode( "\n", $tpl ) as $line ) { # Look for 'special:' in the line - $pos = strpos( $line, 'special:' ); + $pos = strpos( strtolower( $line ), 'special:' ); if( $pos >= 0 ) { # Preserve the line start $lineStart = ( $pos > 0 ) ? substr( $line, 0, $pos ) : ''; # Get the canonical special page name - $canonical = strtolower( trim( substr( $line, $pos + 8 ) ) ); + $canonical = strtolower( trim( substr( $line, $pos + strlen( 'special:' ) ) ) ); # Check if it is a valid regular special page name # Restricted pages will be added at the end diff --git a/languages/messages/MessagesDe.php b/languages/messages/MessagesDe.php index 6f598db356..0a0846c273 100644 --- a/languages/messages/MessagesDe.php +++ b/languages/messages/MessagesDe.php @@ -1393,9 +1393,9 @@ auf die bereits die erste Weiterleitung zeigen sollte.', * special:specialpagename Alle anderen Zeilen werden als normaler (Wiki)Text ausgewertet --> == Allgemeine Listen == -:special:Allpages -: special:Prefixindex -;special:Categories +* special:Allpages +* special:Prefixindex +* special:Categories * special:Disambiguations * special:Listredirects -- 2.20.1