X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FupdateCollation.php;h=06704549470bd19c55a27b47e83f4f688afe7196;hb=4e8eed74233db1db69f178fb0f4f1f8d6416bd52;hp=d88d5e968e56bdfbbc6bdaf62106e5ca52528585;hpb=bf5a10414641d7bda378dd947a33ccca5d897e4f;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/updateCollation.php b/maintenance/updateCollation.php index d88d5e968e..0670454947 100644 --- a/maintenance/updateCollation.php +++ b/maintenance/updateCollation.php @@ -187,13 +187,7 @@ TEXT } # cl_type will be wrong for lots of pages if cl_collation is 0, # so let's update it while we're here. - if ( $title->getNamespace() == NS_CATEGORY ) { - $type = 'subcat'; - } elseif ( $title->getNamespace() == NS_FILE ) { - $type = 'file'; - } else { - $type = 'page'; - } + $type = MWNamespace::getCategoryLinkType( $title->getNamespace() ); $newSortKey = $collation->getSortKey( $title->getCategorySortkey( $prefix ) ); if ( $verboseStats ) {