fix bug of parameters
This commit is contained in:
parent
7f8f882458
commit
90675e7aeb
|
|
@ -65,10 +65,11 @@ class Http
|
||||||
View::json($msg, $code);
|
View::json($msg, $code);
|
||||||
} else {
|
} else {
|
||||||
$config = require BASE_DIR."/config/view.php";
|
$config = require BASE_DIR."/config/view.php";
|
||||||
if (file_exists($config['view_path']."/errors/".$code.".tpl"))
|
if (file_exists($config['view_path']."/errors/".$code.".tpl")) {
|
||||||
echo View::make('errors.'.$code)->with('code', $code)->with('message', $msg);
|
echo View::make('errors.'.$code)->with('code', $code)->with('message', $msg);
|
||||||
else
|
} else {
|
||||||
echo View::make('errors.exception')->with('code', $this->code)->with('message', $this->message);
|
echo View::make('errors.exception')->with('code', $code)->with('message', $msg);
|
||||||
|
}
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user