Commit 9a550358 authored by romanb's avatar romanb

[2.0] Some cleanup for previous commit.

parent 22e94ac5
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment