use sortkey for subcategories, too
authorJens Frank <jeluf@users.mediawiki.org>
Thu, 10 Jun 2004 12:06:25 +0000 (12:06 +0000)
committerJens Frank <jeluf@users.mediawiki.org>
Thu, 10 Jun 2004 12:06:25 +0000 (12:06 +0000)
includes/Parser.php

index 964af1b..15a272d 100644 (file)
@@ -442,7 +442,7 @@ cl_sortkey" ;
                        
                        if ( $x->cur_namespace == $cns ) {
                                array_push ( $children, $sk->makeKnownLink ( $t, str_replace( '_',' ',$x->cur_title) ) ) ; # Subcategory
-                               array_push ( $children_start_char, $wgLang->firstChar( $x->cur_title ) ) ;
+                               array_push ( $children_start_char, $wgLang->firstChar( $x->cl_sortkey ) ) ;
                        } else {
                                array_push ( $articles , $sk->makeLink ( $t ) ) ; # Page in this category
                                array_push ( $articles_start_char, $wgLang->firstChar( $x->cl_sortkey ) ) ;