Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattab <matthieu.aubry@gmail.com>2013-09-16 05:35:34 +0400
committermattab <matthieu.aubry@gmail.com>2013-09-16 05:35:34 +0400
commita20afb2f9817cefffefe6615aa63545e2006cc9b (patch)
treef1d52126e160b7d3eadfad6668d78b012196f1d3 /plugins/Installation
parent614d0e82ad80556af00471369e291f32b0ee0af1 (diff)
DbHelper groups logic around Db, tables, etc.
Diffstat (limited to 'plugins/Installation')
-rw-r--r--plugins/Installation/Controller.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/plugins/Installation/Controller.php b/plugins/Installation/Controller.php
index 981fa54bc7..ee759db0cd 100644
--- a/plugins/Installation/Controller.php
+++ b/plugins/Installation/Controller.php
@@ -24,8 +24,8 @@ use Piwik\Filesystem;
use Piwik\Http;
use Piwik\Piwik;
use Piwik\Plugins\LanguagesManager\LanguagesManager;
-use Piwik\Plugins\SitesManager\API as SitesManagerAPI;
-use Piwik\Plugins\UsersManager\API as UsersManagerAPI;
+use Piwik\Plugins\SitesManager\API as APISitesManager;
+use Piwik\Plugins\UsersManager\API as APIUsersManager;
use Piwik\ProxyHeaders;
use Piwik\Session\SessionNamespace;
use Piwik\SettingsServer;
@@ -274,7 +274,7 @@ class Controller extends \Piwik\Controller\Admin
$this->createDbFromSessionInformation();
if (Common::getRequestVar('deleteTables', 0, 'int') == 1) {
- Piwik::dropTables();
+ DbHelper::dropTables();
$view->existingTablesDeleted = true;
// when the user decides to drop the tables then we dont skip the next steps anymore
@@ -285,7 +285,7 @@ class Controller extends \Piwik\Controller\Admin
$this->session->skipThisStep = $tmp;
}
- $tablesInstalled = Piwik::getTablesInstalled();
+ $tablesInstalled = DbHelper::getTablesInstalled();
$view->tablesInstalled = '';
if (count($tablesInstalled) > 0) {
// we have existing tables
@@ -300,8 +300,8 @@ class Controller extends \Piwik\Controller\Admin
Access::getInstance();
Piwik::setUserIsSuperUser();
if ($baseTablesInstalled >= $minimumCountPiwikTables &&
- count(SitesManagerAPI::getInstance()->getAllSitesId()) > 0 &&
- count(UsersManagerAPI::getInstance()->getUsers()) > 0
+ count(APISitesManager::getInstance()->getAllSitesId()) > 0 &&
+ count(APIUsersManager::getInstance()->getUsers()) > 0
) {
$view->showReuseExistingTables = true;
// when the user reuses the same tables we skip the website creation step
@@ -313,7 +313,7 @@ class Controller extends \Piwik\Controller\Admin
}
} else {
DbHelper::createTables();
- Piwik::createAnonymousUser();
+ DbHelper::createAnonymousUser();
$updater = new Updater();
$updater->recordComponentSuccessfullyUpdated('core', Version::VERSION);
@@ -715,7 +715,7 @@ class Controller extends \Piwik\Controller\Admin
$directoriesToCheck = array();
- if (!Piwik::isInstalled()) {
+ if (!DbHelperS::isInstalled()) {
// at install, need /config to be writable (so we can create config.ini.php)
$directoriesToCheck[] = '/config/';
}