From c836b5974e9010a17e0bdd0008883d975c3f0caf Mon Sep 17 00:00:00 2001 From: Alexander Demidov Date: Wed, 4 Jul 2012 17:30:05 +0400 Subject: [PATCH] Replace checking DEBUG in constructor Profiler to checking PROFILER is it true. --- util/profiler/Profiler.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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.'); } }