* finish task #2689.

This commit is contained in:
wangyidong
2016-11-30 17:13:40 +08:00
parent 964ebebc54
commit feb0e70608
3 changed files with 11 additions and 7 deletions
+5 -5
View File
@@ -65,11 +65,11 @@ class router extends baseRouter
*/
public function saveError($level, $message, $file, $line)
{
$errorNO[E_ERROR] = E_ERROR;
$errorNO[E_PARSE] = E_PARSE;
$errorNO[E_CORE_ERROR] = E_CORE_ERROR;
$errorNO[E_USER_ERROR] = E_USER_ERROR;
if(isset($errorNO[$level]) and $this->config->debug == false) $this->config->debug = true;
$fatalLevel[E_ERROR] = E_ERROR;
$fatalLevel[E_PARSE] = E_PARSE;
$fatalLevel[E_CORE_ERROR] = E_CORE_ERROR;
$fatalLevel[E_USER_ERROR] = E_USER_ERROR;
if(isset($fatalLevel[$level])) $this->config->debug = true;
parent::saveError($level, $message, $file, $line);
}
}