r62458 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r62457‎ | r62458 | r62459 >
Date:12:33, 14 February 2010
Author:catrope
Status:ok
Tags:
Comment:
UsabilityInitiative: Don't include WikiEditor JS for non-usability users
Modified paths:
  • /trunk/extensions/UsabilityInitiative/WikiEditor/WikiEditor.hooks.php (modified) (history)

Diff [purge]

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

Follow-up revisions

RevisionCommit summaryAuthorDate
r62459wmf-deployment: MFT r62458catrope12:34, 14 February 2010

Status & tagging log