From 4a7d1b86cde7b9311d7d1af481a21c7557b83d38 Mon Sep 17 00:00:00 2001 From: Kevin Israel Date: Sat, 4 Jan 2014 14:25:44 -0500 Subject: [PATCH] No need to return true/false from AutoLoader Partially reverts r36942 (7e627faec6bd). Change-Id: I5b3dfd148863413025c71de5fadef1cb5bd70dce --- includes/AutoLoader.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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; } /** -- 2.20.1