Index: trunk/extensions/UsabilityInitiative/WikiEditor/WikiEditor.hooks.php |
— | — | @@ -363,7 +363,9 @@ |
364 | 364 | && $wgUser->getOption( self::$modules[$module]['preferences']['enable']['key'] ) |
365 | 365 | ) || $module == 'global' |
366 | 366 | ) { |
367 | | - UsabilityInitiativeHooks::initialize(); |
| 367 | + if ( $module !== 'global' ) { |
| 368 | + UsabilityInitiativeHooks::initialize(); |
| 369 | + } |
368 | 370 | $enabledModules[$module] = true; |
369 | 371 | // Messages |
370 | 372 | if ( isset( self::$modules[$module]['i18n'], self::$modules[$module]['messages'] ) ) { |