diff options
author | Luke Fitzgerald <lw.fitzgerald@googlemail.com> | 2010-06-30 09:33:29 -0700 |
---|---|---|
committer | Luke Fitzgerald <lw.fitzgerald@googlemail.com> | 2010-06-30 09:33:29 -0700 |
commit | bf6ecfbffc795c1f5b011751a7f4dc8a9d0c14f1 (patch) | |
tree | ee5e5e15fa44a0f4806fe4802f088a07b4e141f1 /plugins/Irc/extlib/phergie/Phergie/Autoload.php | |
parent | 0b2bbd20aa015f5d9d48c4264f56e13324346b4a (diff) |
Updated phergie library
Diffstat (limited to 'plugins/Irc/extlib/phergie/Phergie/Autoload.php')
-rwxr-xr-x | plugins/Irc/extlib/phergie/Phergie/Autoload.php | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/plugins/Irc/extlib/phergie/Phergie/Autoload.php b/plugins/Irc/extlib/phergie/Phergie/Autoload.php index b03fe2ae1..0004f44e2 100755 --- a/plugins/Irc/extlib/phergie/Phergie/Autoload.php +++ b/plugins/Irc/extlib/phergie/Phergie/Autoload.php @@ -1,6 +1,6 @@ <?php /** - * Phergie + * Phergie * * PHP version 5 * @@ -11,7 +11,7 @@ * It is also available through the world-wide-web at this URL: * http://phergie.org/license * - * @category Phergie + * @category Phergie * @package Phergie * @author Phergie Development Team <team@phergie.org> * @copyright 2008-2010 Phergie Development Team (http://phergie.org) @@ -22,7 +22,7 @@ /** * Autoloader for Phergie classes. * - * @category Phergie + * @category Phergie * @package Phergie * @author Phergie Development Team <team@phergie.org> * @license http://phergie.org/license New BSD License @@ -37,9 +37,9 @@ class Phergie_Autoload */ public function __construct() { - $path = dirname(__FILE__); + $path = realpath(dirname(__FILE__) . '/..'); $includePath = get_include_path(); - $includePathList = explode(PATH_SEPARATOR, $includePath); + $includePathList = explode(PATH_SEPARATOR, $includePath); if (!in_array($path, $includePathList)) { self::addPath($path); } @@ -54,9 +54,6 @@ class Phergie_Autoload */ public function load($class) { - if (substr($class, 0, 8) == 'Phergie_') { - $class = substr($class, 8); - } include str_replace('_', DIRECTORY_SEPARATOR, $class) . '.php'; } |