r15887 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r15886‎ | r15887 | r15888 >
Date:10:49, 30 July 2006
Author:daniel
Status:old
Tags:
Comment:
Fixed problem with error reporting if wgUseAjax is not set.
Modified paths:
  • /trunk/extensions/CategoryTree/CategoryTree.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CategoryTree/CategoryTree.php
@@ -28,7 +28,8 @@
2929 * Abort if AJAX is not enabled
3030 **/
3131 if ( !$wgUseAjax ) {
32 - wfDebug( 'CategoryTree: Ajax is not enabled, aborting extension setup.' );
 32+ #NOTE: GlobalFunctions is not yet loaded, so use standard API only.
 33+ trigger_error( 'CategoryTree: Ajax is not enabled, aborting extension setup.', E_USER_WARNING );
3334 return;
3435 }
3536