Updated phergie library

This commit is contained in:
Luke Fitzgerald
2010-06-30 09:33:29 -07:00
parent 0b2bbd20aa
commit bf6ecfbffc
35 changed files with 2765 additions and 651 deletions

View File

@@ -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';
}