diff --git a/util/profiler/Profiler.php b/util/profiler/Profiler.php index 68fa9dc..e883b4c 100644 --- a/util/profiler/Profiler.php +++ b/util/profiler/Profiler.php @@ -22,8 +22,8 @@ class Profiler private function __construct() { - if (Config::get('DEBUG') == false) { - throw new GeneralException('Need to turn on DEBUG before use.'); + if (Config::get('PROFILER') == false) { + throw new GeneralException('Need to turn on PROFILER before use.'); } }