From: Kevin Israel Date: Sat, 4 Jan 2014 19:25:44 +0000 (-0500) Subject: No need to return true/false from AutoLoader X-Git-Tag: 1.31.0-rc.0~17373 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=4a7d1b86cde7b9311d7d1af481a21c7557b83d38;p=lhc%2Fweb%2Fwiklou.git No need to return true/false from AutoLoader Partially reverts r36942 (7e627faec6bd). Change-Id: I5b3dfd148863413025c71de5fadef1cb5bd70dce --- diff --git a/includes/AutoLoader.php b/includes/AutoLoader.php index a9b03768f1..cd062e01cd 100644 --- a/includes/AutoLoader.php +++ b/includes/AutoLoader.php @@ -1157,9 +1157,6 @@ class AutoLoader { * autoload - take a class name and attempt to load it * * @param string $className name of class we're looking for. - * @return bool Returning false is important on failure as - * it allows Zend to try and look in other registered autoloaders - * as well. */ static function autoload( $className ) { global $wgAutoloadClasses, $wgAutoloadLocalClasses, @@ -1209,7 +1206,7 @@ class AutoLoader { } # Give up - return false; + return; } # Make an absolute path, this improves performance by avoiding some stat calls @@ -1219,8 +1216,6 @@ class AutoLoader { } require $filename; - - return true; } /**