From 4b160a4d8407b52a309a978b61651fc4bab0559a Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Mon, 8 Dec 2008 15:35:06 +0000 Subject: [PATCH] Check if wfDebug() is defined before calling it since AutoLoader.php is loaded before GlobalFunctions.php and may result in fatal error --- includes/AutoLoader.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.20.1