1
0
mirror of synced 2024-12-13 06:46:03 +03:00

[2.0] Some cleanup for previous commit.

This commit is contained in:
romanb 2009-01-22 19:50:55 +00:00
parent 22e94ac594
commit 9a55035883

View File

@ -75,8 +75,6 @@ class ClassLoader
$class .= $this->_basePaths[$prefix] . DIRECTORY_SEPARATOR;
}
if ($className[0] == '\\') $className = substr($className, 1);
$class .= str_replace(array($this->_namespaceSeparator, '_'), DIRECTORY_SEPARATOR, $className)
. $this->_fileExtension;
@ -87,21 +85,6 @@ class ClassLoader
@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;
return true;