r101384 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r101383‎ | r101384 | r101385 >
Date:18:57, 31 October 2011
Author:krinkle
Status:ok
Tags:
Comment:
[JSTesting] Match the other wgEnableJavaScriptTest checks (just in case).
* Follows-up r101346, r101352, r101353
Modified paths:
  • /branches/JSTesting/includes/resourceloader/ResourceLoader.php (modified) (history)

Diff [purge]

Index: branches/JSTesting/includes/resourceloader/ResourceLoader.php
@@ -275,7 +275,7 @@
276276 public function registerTestModules() {
277277 global $IP, $wgEnableJavaScriptTest;
278278
279 - if ( $wgEnableJavaScriptTest === false ) {
 279+ if ( $wgEnableJavaScriptTest !== true ) {
280280 throw new MWException( 'Attempt to register JavaScript test modules but <tt>$wgEnableJavaScriptTest</tt> is false. Edit your <tt>LocalSettings.php</tt> to enable it.' );
281281 }
282282

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r101346now explicitly need to register test modules....hashar10:15, 31 October 2011
r101352unconditionally register the test modules...hashar11:51, 31 October 2011
r101353remove exception added by r101346...hashar11:56, 31 October 2011

Status & tagging log