bug fix in newcategorymagic: first char was alway the one of the category namespace...
authorAntoine Musso <hashar@users.mediawiki.org>
Mon, 7 Jun 2004 03:46:33 +0000 (03:46 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Mon, 7 Jun 2004 03:46:33 +0000 (03:46 +0000)
includes/Parser.php

index 596c576..6f4f2ee 100644 (file)
@@ -450,7 +450,7 @@ cl_sortkey" ;
                        
                        if ( $x->cur_namespace == $cns ) {
                                array_push ( $children, $sk->makeKnownLink ( $t, $x->cur_title) ) ; # Subcategory
-                               array_push ( $children_start_char, $wgLang->firstChar( $x->cl_sortkey ) ) ;
+                               array_push ( $children_start_char, $wgLang->firstChar( $x->cur_title ) ) ;
                        } else {
                                array_push ( $articles , $sk->makeLink ( $t ) ) ; # Page in this category
                                array_push ( $articles_start_char, $wgLang->firstChar( $x->cl_sortkey ) ) ;