diff options
author | mattpiwik <matthieu.aubry@gmail.com> | 2008-02-01 07:58:57 +0300 |
---|---|---|
committer | mattpiwik <matthieu.aubry@gmail.com> | 2008-02-01 07:58:57 +0300 |
commit | 3eddc0dce6abc87ce97dab5443939faf66e2daba (patch) | |
tree | a81a6fcbab0f92edf47edee7e099579d0d2e75e5 /modules | |
parent | b75c4fcad093aa8fc3d962e45eaf4b7118da5a5a (diff) |
- fixed bug LogStats / Installation wasnt working after all these changes
git-svn-id: http://dev.piwik.org/svn/trunk@259 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'modules')
-rwxr-xr-x | modules/Config.php | 4 | ||||
-rw-r--r-- | modules/LogStats.php | 2 | ||||
-rw-r--r-- | modules/LogStats/Generator.php | 1 |
3 files changed, 5 insertions, 2 deletions
diff --git a/modules/Config.php b/modules/Config.php index 9161016b6a..137721de2a 100755 --- a/modules/Config.php +++ b/modules/Config.php @@ -26,6 +26,7 @@ class Piwik_Config protected $pathIniFileUserConfig = null; protected $pathIniFileDefaultConfig = null; protected $configFileUpdated = false; + public $doWriteFileWhenUpdated = true; // see http://bugs.php.net/bug.php?id=34206 protected $correctCwd; @@ -65,7 +66,8 @@ class Piwik_Config function __destruct() { // saves the config file if changed - if($this->configFileUpdated === true) + if($this->configFileUpdated === true + && $this->doWriteFileWhenUpdated === true) { print("write ini file changed"); diff --git a/modules/LogStats.php b/modules/LogStats.php index 084bf4bcd4..0f8b000590 100644 --- a/modules/LogStats.php +++ b/modules/LogStats.php @@ -85,7 +85,7 @@ class Piwik_LogStats private function initProcess() { Piwik_PluginsManager::getInstance()->setPluginsToLoad( - Piwik_LogStats_Config::getInstance()->Plugins_LogStats['Plugins']->toArray() + Piwik_LogStats_Config::getInstance()->Plugins_LogStats['Plugins'] ); $saveStats = Piwik_LogStats_Config::getInstance()->LogStats['record_statistics']; diff --git a/modules/LogStats/Generator.php b/modules/LogStats/Generator.php index c14b862229..e869a18793 100644 --- a/modules/LogStats/Generator.php +++ b/modules/LogStats/Generator.php @@ -62,6 +62,7 @@ class Piwik_LogStats_Generator require_once "modules/Piwik.php"; Piwik::createConfigObject('../config/config.ini.php'); + Zend_Registry::get('config')->doWriteFileWhenUpdated = false; // setup database Piwik::createDatabaseObject(); |