Replace constant DEBUG to use in Config. Remove start profiler from FrontController (moved to bootstrap).
This commit is contained in:
@ -22,7 +22,7 @@ class Profiler
|
||||
|
||||
private function __construct()
|
||||
{
|
||||
if (DEBUG == false) {
|
||||
if (Config::get('DEBUG') == false) {
|
||||
throw new GeneralException('Need to turn on DEBUG before use.');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user