From: Alexandre Emsenhuber Date: Mon, 8 Dec 2008 15:35:06 +0000 (+0000) Subject: Check if wfDebug() is defined before calling it since AutoLoader.php is loaded before... X-Git-Tag: 1.31.0-rc.0~44099 X-Git-Url: http://git.cyclocoop.org/%28%5B%5E/404?a=commitdiff_plain;h=4b160a4d8407b52a309a978b61651fc4bab0559a;p=lhc%2Fweb%2Fwiklou.git Check if wfDebug() is defined before calling it since AutoLoader.php is loaded before GlobalFunctions.php and may result in fatal error --- diff --git a/includes/AutoLoader.php b/includes/AutoLoader.php index 2e6e81af8c..493332d34d 100644 --- a/includes/AutoLoader.php +++ b/includes/AutoLoader.php @@ -554,7 +554,8 @@ class AutoLoader { } } if ( !$filename ) { - wfDebug( "Class {$className} not found; skipped loading" ); + if( function_exists( 'wfDebug' ) ) + wfDebug( "Class {$className} not found; skipped loading" ); # Give up wfProfileOut( __METHOD__ ); return false;