From ebcf6a025e233c05c3fec74ef00c847b62321cee Mon Sep 17 00:00:00 2001 From: robocoder <anthon.pang@gmail.com> Date: Sat, 9 Apr 2011 15:16:54 +0000 Subject: [PATCH] guard against re-initialization of FrontController; see http://forum.piwik.org/read.php?2,5816 git-svn-id: http://dev.piwik.org/svn/trunk@4388 59fd770c-687e-43c8-a1e3-f5a4ff64c105 --- core/FrontController.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/core/FrontController.php b/core/FrontController.php index b97829bfb4..e55a9ef1bf 100644 --- a/core/FrontController.php +++ b/core/FrontController.php @@ -177,6 +177,13 @@ class Piwik_FrontController */ function init() { + static $initialized = false; + if($initialized) + { + return; + } + $initialized = true; + try { Zend_Registry::set('timer', new Piwik_Timer); -- GitLab