diff options
author | Benaka Moorthi <benaka.moorthi@gmail.com> | 2013-09-24 08:47:14 +0400 |
---|---|---|
committer | Benaka Moorthi <benaka.moorthi@gmail.com> | 2013-09-24 08:47:14 +0400 |
commit | 2cb3bca565e0251fa7ecd74246d05f4cbdc1aa61 (patch) | |
tree | ca5a58226bac4c5917669a8945bb39c55c1f891a /core/Profiler.php | |
parent | 019bdb782bf33bfadc1c1a254fcd128094d0ce7e (diff) | |
parent | 463e88b27a8effea653e6bf6f3d93da8ca4906e1 (diff) |
Merge branch 'master' into log
Conflicts:
core/Log.php
Diffstat (limited to 'core/Profiler.php')
-rw-r--r-- | core/Profiler.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/Profiler.php b/core/Profiler.php index 76acd914e7..b959e3990c 100644 --- a/core/Profiler.php +++ b/core/Profiler.php @@ -50,7 +50,7 @@ class Profiler */ public static function displayDbProfileReport() { - $profiler = \Zend_Registry::get('db')->getProfiler(); + $profiler = Db::get()->getProfiler(); if (!$profiler->getEnabled()) { throw new \Exception("To display the profiler you should enable enable_sql_profiler on your config/config.ini.php file"); @@ -144,7 +144,7 @@ class Profiler */ public static function getDbElapsedSecs() { - $profiler = \Zend_Registry::get('db')->getProfiler(); + $profiler = Db::get()->getProfiler(); return $profiler->getTotalElapsedSecs(); } @@ -155,7 +155,7 @@ class Profiler */ public static function getQueryCount() { - $profiler = \Zend_Registry::get('db')->getProfiler(); + $profiler = Db::get()->getProfiler(); return $profiler->getTotalNumQueries(); } |