Replace checking DEBUG in constructor Profiler to checking PROFILER is it true.
This commit is contained in:
@ -22,8 +22,8 @@ class Profiler
|
|||||||
|
|
||||||
private function __construct()
|
private function __construct()
|
||||||
{
|
{
|
||||||
if (Config::get('DEBUG') == false) {
|
if (Config::get('PROFILER') == false) {
|
||||||
throw new GeneralException('Need to turn on DEBUG before use.');
|
throw new GeneralException('Need to turn on PROFILER before use.');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user