Browse Source

Replace checking DEBUG in constructor Profiler to checking PROFILER is it true.

master
Alexander Demidov 12 years ago
parent
commit
c836b5974e
  1. 4
      util/profiler/Profiler.php

4
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.');
}
}

Loading…
Cancel
Save