when debugging, show error messages
This commit is contained in:
parent
86d501135f
commit
86fe729403
1 changed files with 7 additions and 0 deletions
7
common.php
Normal file → Executable file
7
common.php
Normal file → Executable file
|
@ -10,6 +10,13 @@ $classLoader = new SplClassLoader(null, APP_PATH);
|
|||
$classLoader->setFileExtension('.class.php');
|
||||
$classLoader->register();
|
||||
|
||||
// In debug mode, display errors
|
||||
if(Config::get_safe('debug', false)){
|
||||
ini_set('display_errors', 1);
|
||||
ini_set('display_startup_errors', 1);
|
||||
error_reporting(E_ALL);
|
||||
}
|
||||
|
||||
// Language
|
||||
Lang::load(empty($_GET["hl"]) ? Config::get("lang") : $_GET["hl"]);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue