diff options
author | vipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2010-02-10 11:26:40 +0300 |
---|---|---|
committer | vipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2010-02-10 11:26:40 +0300 |
commit | 8dace409b0895d3320f389b978820bb722b60630 (patch) | |
tree | 735823c771d700211976db19db5b0141b243a779 /plugins/SitesManager | |
parent | e6d09093dbb197dbfd51e9803d5ee4a64372cac5 (diff) |
refs #1122 - fix usage
Diffstat (limited to 'plugins/SitesManager')
-rw-r--r-- | plugins/SitesManager/API.php | 2 | ||||
-rw-r--r-- | plugins/SitesManager/Controller.php | 4 | ||||
-rw-r--r-- | plugins/SitesManager/SitesManager.php | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/plugins/SitesManager/API.php b/plugins/SitesManager/API.php index a441eac2bd..157abada8b 100644 --- a/plugins/SitesManager/API.php +++ b/plugins/SitesManager/API.php @@ -265,7 +265,7 @@ class Piwik_SitesManager_API { Piwik::checkUserIsSuperUser(); - $idSites = Piwik_SitesManager_API::getAllSitesId(); + $idSites = Piwik_SitesManager_API::getInstance()->getAllSitesId(); if(!in_array($idSite, $idSites)) { throw new Exception("website id = $idSite not found"); diff --git a/plugins/SitesManager/Controller.php b/plugins/SitesManager/Controller.php index 275e50f50d..bd349b16dc 100644 --- a/plugins/SitesManager/Controller.php +++ b/plugins/SitesManager/Controller.php @@ -19,10 +19,10 @@ class Piwik_SitesManager_Controller extends Piwik_Controller function index() { $view = Piwik_View::factory('SitesManager'); - $sites = Piwik_SitesManager_API::getSitesWithAdminAccess(); + $sites = Piwik_SitesManager_API::getInstance()->getSitesWithAdminAccess(); foreach($sites as &$site) { - $site['alias_urls'] = Piwik_SitesManager_API::getSiteUrlsFromId($site['idsite']); + $site['alias_urls'] = Piwik_SitesManager_API::getInstance()->getSiteUrlsFromId($site['idsite']); } $view->adminSites = $sites; $this->setGeneralVariablesView($view); diff --git a/plugins/SitesManager/SitesManager.php b/plugins/SitesManager/SitesManager.php index 63fc0d4fee..10f4d05a08 100644 --- a/plugins/SitesManager/SitesManager.php +++ b/plugins/SitesManager/SitesManager.php @@ -47,7 +47,7 @@ class Piwik_SitesManager extends Piwik_Plugin $idsite = $notification->getNotificationInfo(); // add the 'hosts' entry in the website array $array =& $notification->getNotificationObject(); - $urls = Piwik_SitesManager_API::getSiteUrlsFromId($idsite); + $urls = Piwik_SitesManager_API::getInstance()->getSiteUrlsFromId($idsite); $hosts = array(); foreach($urls as $url) { |