diff options
author | mattab <matthieu.aubry@gmail.com> | 2013-09-16 05:35:34 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2013-09-16 05:35:34 +0400 |
commit | a20afb2f9817cefffefe6615aa63545e2006cc9b (patch) | |
tree | f1d52126e160b7d3eadfad6668d78b012196f1d3 /core/View.php | |
parent | 614d0e82ad80556af00471369e291f32b0ee0af1 (diff) |
DbHelper groups logic around Db, tables, etc.
Diffstat (limited to 'core/View.php')
-rw-r--r-- | core/View.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/View.php b/core/View.php index 98406e30cc..65f6b14faf 100644 --- a/core/View.php +++ b/core/View.php @@ -11,8 +11,8 @@ namespace Piwik; use Exception; -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\View\ViewInterface; use Twig_Environment; use Zend_Registry; @@ -101,7 +101,7 @@ class View implements ViewInterface $count = SettingsPiwik::getWebsitesCountToDisplay(); - $sites = SitesManagerAPI::getInstance()->getSitesWithAtLeastViewAccess($count); + $sites = APISitesManager::getInstance()->getSitesWithAtLeastViewAccess($count); usort($sites, function($site1, $site2) { return strcasecmp($site1["name"], $site2["name"]); }); @@ -121,7 +121,7 @@ class View implements ViewInterface $this->loginModule = Piwik::getLoginPluginName(); - $user = UsersManagerAPI::getInstance()->getUser($userLogin); + $user = APIUsersManager::getInstance()->getUser($userLogin); $this->userAlias = $user['alias']; } catch (Exception $e) { // can fail, for example at installation (no plugin loaded yet) |