Index: branches/REL1_17/extensions/Vector/Vector.hooks.php |
— | — | @@ -137,27 +137,6 @@ |
138 | 138 | public static function makeGlobalVariablesScript( &$vars ) { |
139 | 139 | global $wgVectorFeatures; |
140 | 140 | |
141 | | - $configurations = array(); |
142 | | - foreach ( self::$features as $name => $feature ) { |
143 | | - if ( |
144 | | - isset( $feature['configurations'] ) && |
145 | | - ( !isset( $wgVectorFeatures[$name] ) || self::isEnabled( $name ) ) |
146 | | - ) { |
147 | | - foreach ( $feature['configurations'] as $configuration ) { |
148 | | - global $$configuration; |
149 | | - $configurations[$configuration] = $$configuration; |
150 | | - } |
151 | | - } |
152 | | - } |
153 | | - if ( count( $configurations ) ) { |
154 | | - $vars = array_merge( $vars, $configurations ); |
155 | | - } |
156 | | - return true; |
157 | | - } |
158 | | - |
159 | | - public static function makeGlobalVariablesScript( &$vars ) { |
160 | | - global $wgVectorFeatures; |
161 | | - |
162 | 141 | // Build and export old-style wgVectorEnabledModules object for back compat |
163 | 142 | $enabledModules = array(); |
164 | 143 | foreach ( self::$features as $name => $feature ) { |