summaryrefslogtreecommitdiff
path: root/plugins/Irc/extlib/phergie/Phergie/Autoload.php
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Irc/extlib/phergie/Phergie/Autoload.php')
-rwxr-xr-xplugins/Irc/extlib/phergie/Phergie/Autoload.php13
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';
}