From: Raimond Spekking Date: Wed, 5 Mar 2008 16:42:56 +0000 (+0000) Subject: Two fixes, thanks to Simetrical X-Git-Tag: 1.31.0-rc.0~49243 X-Git-Url: http://git.cyclocoop.org/fichier?a=commitdiff_plain;h=41d47342351d8e4350cdfc35261108ab1532a980;p=lhc%2Fweb%2Fwiklou.git Two fixes, thanks to Simetrical --- 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