From a3604f3341118c9330bbe2656e892fedd72ccb86 Mon Sep 17 00:00:00 2001 From: printempw Date: Sun, 3 Apr 2016 15:56:16 +0800 Subject: [PATCH] fixed bug when call E class directly --- libraries/E.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/E.class.php b/libraries/E.class.php index cdf5787e..7830d9ab 100644 --- a/libraries/E.class.php +++ b/libraries/E.class.php @@ -3,7 +3,7 @@ * @Author: printempw * @Date: 2016-03-27 11:04:14 * @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 @@ -34,7 +34,7 @@ class E extends Exception private function showErrorPage() { $message = $this->message; $code = $this->code; - require BASE_DIR."/templates/error.tpl.php"; + require dirname(dirname(__FILE__))."/templates/error.tpl.php"; exit; } }