From 9c696be2412bdedea6cb8a058e1eb71234e964a1 Mon Sep 17 00:00:00 2001 From: Chuck Hagenbuch Date: Fri, 26 Dec 2008 22:41:13 -0500 Subject: [PATCH] add a note about going back to include later --- framework/Autoloader/lib/Horde/Autoloader.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/framework/Autoloader/lib/Horde/Autoloader.php b/framework/Autoloader/lib/Horde/Autoloader.php index 1d3dd1748..b778ea2bc 100644 --- a/framework/Autoloader/lib/Horde/Autoloader.php +++ b/framework/Autoloader/lib/Horde/Autoloader.php @@ -6,6 +6,11 @@ * @package Horde_Autoloader * @license http://www.gnu.org/copyleft/lesser.html */ + +/** + * @category Horde + * @package Horde_Autoloader + */ class Horde_Autoloader { /** @@ -38,9 +43,10 @@ class Horde_Autoloader if (!is_null($replace) || preg_match($pattern, $file)) { $file = str_replace(array('::', '_'), '/', $file) . '.php'; $oldErrorReporting = error_reporting(E_ALL ^ E_WARNING); - $res = include_once $file; + /* @TODO H4: Change back to include */ + $included = include_once $file; error_reporting($oldErrorReporting); - if ($res) { + if ($included) { return true; } } -- 2.11.0