From: Antoine Musso Date: Mon, 7 Jun 2004 03:46:33 +0000 (+0000) Subject: bug fix in newcategorymagic: first char was alway the one of the category namespace... X-Git-Tag: 1.5.0alpha1~3005 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/membres/fiche.php?a=commitdiff_plain;h=c6294709335125c3c54062e679c67d5f52fb2c6d;p=lhc%2Fweb%2Fwiklou.git bug fix in newcategorymagic: first char was alway the one of the category namespace (aka C) --- diff --git a/includes/Parser.php b/includes/Parser.php index 596c576be8..6f4f2ee8c4 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -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 ) ) ;