From: Roan Kattouw Date: Wed, 8 Dec 2010 20:10:11 +0000 (+0000) Subject: Remove unnecessary check against $wgAllowUserCss in ResourceLoaderUserModule that... X-Git-Tag: 1.31.0-rc.0~33435 X-Git-Url: http://git.cyclocoop.org//%22javascript:ModifierStyle%28%27%22.%24id.%22%27%29/%22?a=commitdiff_plain;h=94c7c847d00ac7f3f4863b6121d757d5b99eaf3b;p=lhc%2Fweb%2Fwiklou.git Remove unnecessary check against $wgAllowUserCss in ResourceLoaderUserModule that was used to trigger JS as well as CSS, breaking installs where user JS is allowed but user CSS is not. Callers already check for the relevant $wgAllow* variables before including this module. --- diff --git a/includes/resourceloader/ResourceLoaderUserModule.php b/includes/resourceloader/ResourceLoaderUserModule.php index cb974f74c2..fe7580c132 100644 --- a/includes/resourceloader/ResourceLoaderUserModule.php +++ b/includes/resourceloader/ResourceLoaderUserModule.php @@ -28,9 +28,7 @@ class ResourceLoaderUserModule extends ResourceLoaderWikiModule { /* Protected Methods */ protected function getPages( ResourceLoaderContext $context ) { - global $wgAllowUserCss; - - if ( $context->getUser() && $wgAllowUserCss ) { + if ( $context->getUser() ) { $username = $context->getUser(); return array( "$username/common.js" => array( 'ns' => NS_USER, 'type' => 'script' ),