Check if wfDebug() is defined before calling it since AutoLoader.php is loaded before...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Mon, 8 Dec 2008 15:35:06 +0000 (15:35 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Mon, 8 Dec 2008 15:35:06 +0000 (15:35 +0000)
includes/AutoLoader.php

index 2e6e81a..493332d 100644 (file)
@@ -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;