fixed bug when call E class directly

This commit is contained in:
printempw 2016-04-03 15:56:16 +08:00
parent 532ba30e99
commit a3604f3341

View File

@ -3,7 +3,7 @@
* @Author: printempw * @Author: printempw
* @Date: 2016-03-27 11:04:14 * @Date: 2016-03-27 11:04:14
* @Last Modified by: printempw * @Last Modified by: printempw
* @Last Modified time: 2016-04-02 22:25:08 * @Last Modified time: 2016-04-03 15:53:59
*/ */
class E extends Exception class E extends Exception
@ -34,7 +34,7 @@ class E extends Exception
private function showErrorPage() { private function showErrorPage() {
$message = $this->message; $message = $this->message;
$code = $this->code; $code = $this->code;
require BASE_DIR."/templates/error.tpl.php"; require dirname(dirname(__FILE__))."/templates/error.tpl.php";
exit; exit;
} }
} }