diff options
author | Thomas Steur <thomas.steur@googlemail.com> | 2014-02-07 01:24:07 +0400 |
---|---|---|
committer | Thomas Steur <thomas.steur@googlemail.com> | 2014-02-07 01:24:07 +0400 |
commit | ab6070fca5de90d1b645ae95a54e18a0c82f4be0 (patch) | |
tree | 36793dc2b3b96b8a72554ef2e3914b634defac39 /piwik.php | |
parent | 277af287ed7ea5a5d0effa847986711992940e0c (diff) |
refs #4439 disable eAccelerator if enabled (just disabling optimizing did not work) and display a message in the admin UI. Also disabled eAccelerator during tracking. We might need to move the method to detect eAccelerator to another place, not sure if this is the best one
Diffstat (limited to 'piwik.php')
-rw-r--r-- | piwik.php | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -35,6 +35,11 @@ if (!defined('PIWIK_INCLUDE_PATH')) { @ignore_user_abort(true); +require_once PIWIK_INCLUDE_PATH . '/core/Plugin/Controller.php'; +require_once PIWIK_INCLUDE_PATH . '/core/Plugin/ControllerAdmin.php'; + +\Piwik\Plugin\ControllerAdmin::disableEacceleratorIfEnabled(); + require_once PIWIK_INCLUDE_PATH . '/libs/upgradephp/upgrade.php'; require_once PIWIK_INCLUDE_PATH . '/core/testMinimumPhpVersion.php'; require_once PIWIK_INCLUDE_PATH . '/core/Singleton.php'; @@ -78,6 +83,7 @@ session_cache_limiter('nocache'); if (!defined('PIWIK_ENABLE_TRACKING') || PIWIK_ENABLE_TRACKING) { ob_start(); } + if ($GLOBALS['PIWIK_TRACKER_DEBUG'] === true) { require_once PIWIK_INCLUDE_PATH . '/core/Loader.php'; |