[2.0] Some cleanup for previous commit.
This commit is contained in:
parent
22e94ac594
commit
9a55035883
@ -75,8 +75,6 @@ class ClassLoader
|
|||||||
$class .= $this->_basePaths[$prefix] . DIRECTORY_SEPARATOR;
|
$class .= $this->_basePaths[$prefix] . DIRECTORY_SEPARATOR;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($className[0] == '\\') $className = substr($className, 1);
|
|
||||||
|
|
||||||
$class .= str_replace(array($this->_namespaceSeparator, '_'), DIRECTORY_SEPARATOR, $className)
|
$class .= str_replace(array($this->_namespaceSeparator, '_'), DIRECTORY_SEPARATOR, $className)
|
||||||
. $this->_fileExtension;
|
. $this->_fileExtension;
|
||||||
|
|
||||||
@ -87,21 +85,6 @@ class ClassLoader
|
|||||||
@fclose($fh);
|
@fclose($fh);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($class == 'ForumAvatar.php' || $class == 'ForumUser.php') {
|
|
||||||
echo $class . PHP_EOL;
|
|
||||||
try {
|
|
||||||
throw new \Exception();
|
|
||||||
} catch (\Exception $e) {
|
|
||||||
echo $e->getTraceAsString();
|
|
||||||
}
|
|
||||||
} else if ($class == 'Doctrine/Common/Exceptions/DoctrineException.php') {
|
|
||||||
try {
|
|
||||||
throw new \Exception();
|
|
||||||
} catch (\Exception $e) {
|
|
||||||
echo $e->getTraceAsString();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
require $class;
|
require $class;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user