Two fixes, thanks to Simetrical
authorRaimond Spekking <raymond@users.mediawiki.org>
Wed, 5 Mar 2008 16:42:56 +0000 (16:42 +0000)
committerRaimond Spekking <raymond@users.mediawiki.org>
Wed, 5 Mar 2008 16:42:56 +0000 (16:42 +0000)
includes/SpecialSpecialpages.php
languages/messages/MessagesDe.php

index 24be9aa..94547ff 100644 (file)
@@ -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
index 6f598db..0a0846c 100644 (file)
@@ -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