From 346f3149f70508a5de7f0e73c3239b53bb500a7e Mon Sep 17 00:00:00 2001 From: Happy-melon Date: Wed, 19 Oct 2011 17:09:04 +0000 Subject: [PATCH] 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. --- includes/resourceloader/ResourceLoaderUserGroupsModule.php | 1 - 1 file changed, 1 deletion(-) 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' ); } -- 2.20.1