From: Bartosz DziewoƄski Date: Sun, 17 Aug 2014 17:00:37 +0000 (+0200) Subject: WebInstallerOutput: Restore 'global $wgResourceModules' X-Git-Tag: 1.31.0-rc.0~14405^2 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/membres/fiche.php?a=commitdiff_plain;h=c1c334efa5e8b7efa356baefbc2e305526880d92;p=lhc%2Fweb%2Fwiklou.git WebInstallerOutput: Restore 'global $wgResourceModules' Deleted in 301a7f3d, previously added in a96afeb2. Change-Id: If0889bc003320abd0b74fc57b8975255f0efcc7e --- diff --git a/includes/installer/WebInstallerOutput.php b/includes/installer/WebInstallerOutput.php index 174120f5de..0ce20074f3 100644 --- a/includes/installer/WebInstallerOutput.php +++ b/includes/installer/WebInstallerOutput.php @@ -126,6 +126,11 @@ class WebInstallerOutput { public function getCSS() { // Horrible, horrible hack: the installer is currently hardcoded to use the Vector skin, so load // it here. Include instead of require, as this will work without it, it will just look bad. + // We need the 'global' statement for $wgResourceModules because the Vector skin adds the + // definitions for its RL modules there that we use implicitly below. + // @codingStandardsIgnoreStart + global $wgResourceModules; // This is NOT UNUSED! + // @codingStandardsIgnoreEnd global $wgStyleDirectory; include_once "$wgStyleDirectory/Vector/Vector.php";