diff options
author | Fabian Becker <fabian.becker@uni-tuebingen.de> | 2013-07-18 13:25:08 +0400 |
---|---|---|
committer | Fabian Becker <fabian.becker@uni-tuebingen.de> | 2013-07-18 13:25:08 +0400 |
commit | 879d0e094824bd6d46ca1ecbba1cda945394bb05 (patch) | |
tree | 038ad7cbfe1e6441ada4e5a979ec54331d910f42 /core/Updates/0.5.4.php | |
parent | df0fd261c9172926a8a2a9a05fd4b30bd840d5f7 (diff) |
Refactor Piwik_Config to \Piwik\Core\Config
2 steps required:
1. Refactor > Move > \Piwik\Core\Config (uncheck "Create new File")
2. Refactor > Rename > Piwik_Config to Config
Diffstat (limited to 'core/Updates/0.5.4.php')
-rw-r--r-- | core/Updates/0.5.4.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/core/Updates/0.5.4.php b/core/Updates/0.5.4.php index 733fccfd3d..45e69d1c18 100644 --- a/core/Updates/0.5.4.php +++ b/core/Updates/0.5.4.php @@ -8,6 +8,7 @@ * @category Piwik * @package Updates */ +use Piwik\Core\Config; /** * @package Updates @@ -25,11 +26,11 @@ class Piwik_Updates_0_5_4 extends Piwik_Updates static function update() { $salt = Piwik_Common::generateUniqId(); - $config = Piwik_Config::getInstance(); + $config = Config::getInstance(); $superuser = $config->superuser; if (!isset($superuser['salt'])) { try { - if (is_writable(Piwik_Config::getLocalConfigPath())) { + if (is_writable(Config::getLocalConfigPath())) { $superuser['salt'] = $salt; $config->superuser = $superuser; $config->forceSave(); @@ -44,7 +45,7 @@ class Piwik_Updates_0_5_4 extends Piwik_Updates $plugins = $config->Plugins; if (!in_array('MultiSites', $plugins)) { try { - if (is_writable(Piwik_Config::getLocalConfigPath())) { + if (is_writable(Config::getLocalConfigPath())) { $plugins[] = 'MultiSites'; $config->Plugins = $plugins; $config->forceSave(); |