From: Kevin Israel Date: Fri, 21 Mar 2014 15:07:08 +0000 (-0400) Subject: AutoLoader: Remove "Class ... not found" debug message X-Git-Tag: 1.31.0-rc.0~16535^2 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=2364ac099a30a8c6254f3ad187e546d1b094f6bb;p=lhc%2Fweb%2Fwiklou.git AutoLoader: Remove "Class ... not found" debug message Per existing FIXME comment: "This is not very polite. Assume we do not manage the class." Reverts the remaining portion of r44296 / 2f584f68a95a while clarifying the "Give up" comment. Change-Id: I4471f9376cae6b3c3e8df99e960770863ebf37ca --- diff --git a/includes/AutoLoader.php b/includes/AutoLoader.php index 9d764e144e..4fbf40884a 100644 --- a/includes/AutoLoader.php +++ b/includes/AutoLoader.php @@ -1221,16 +1221,11 @@ class AutoLoader { } if ( !$filename ) { - if ( function_exists( 'wfDebugLog' ) ) { - # FIXME: This is not very polite. Assume we do not manage the class. - wfDebugLog( 'autoloader', "Class {$className} not found; skipped loading" ); - } - - # Give up + // Class not found; let the next autoloader try to find it return; } - # Make an absolute path, this improves performance by avoiding some stat calls + // Make an absolute path, this improves performance by avoiding some stat calls if ( substr( $filename, 0, 1 ) != '/' && substr( $filename, 1, 1 ) != ':' ) { global $IP; $filename = "$IP/$filename";