From: Happy-melon Date: Wed, 19 Oct 2011 17:09:04 +0000 (+0000) Subject: Follow-up r82285: we should not apply case conversion to these names, because it... X-Git-Tag: 1.31.0-rc.0~27006 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22auteur_infos%22%2C%20%22id_auteur=%24id%22%29%20.%20%22?a=commitdiff_plain;h=346f3149f70508a5de7f0e73c3239b53bb500a7e;p=lhc%2Fweb%2Fwiklou.git Follow-up r82285: we should not apply case conversion to these names, because it's unintuitive and potentially risky when they could theoretically contain weird characters. It was necessary before r86508, but not now there is a prefix meaning the group name is not at the start of the title. Plus the default messages are already at the lowercase titles. --- diff --git a/includes/resourceloader/ResourceLoaderUserGroupsModule.php b/includes/resourceloader/ResourceLoaderUserGroupsModule.php index e364828848..38bba91d49 100644 --- a/includes/resourceloader/ResourceLoaderUserGroupsModule.php +++ b/includes/resourceloader/ResourceLoaderUserGroupsModule.php @@ -39,7 +39,6 @@ class ResourceLoaderUserGroupsModule extends ResourceLoaderWikiModule { if( in_array( $group, array( '*', 'user' ) ) ){ continue; } - $g = ucfirst( $group ); $pages["MediaWiki:Group-$g.js"] = array( 'type' => 'script' ); $pages["MediaWiki:Group-$g.css"] = array( 'type' => 'style' ); }