diff options
author | matt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2008-08-04 03:53:22 +0400 |
---|---|---|
committer | matt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2008-08-04 03:53:22 +0400 |
commit | 1dfc7ae2d07f99daccd432762c232b9329ea4285 (patch) | |
tree | e60f0a9ebcbc8ab2c9f45031284bec17cc532523 /plugins/SitesManager/Controller.php | |
parent | 3f93985c07dcfa88d905b468692ac32b684cd558 (diff) |
- renamed modules/ directory in core/
- cleaning admin UI
- adding widgetize module
- cleaning template architecture
Diffstat (limited to 'plugins/SitesManager/Controller.php')
-rw-r--r-- | plugins/SitesManager/Controller.php | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/plugins/SitesManager/Controller.php b/plugins/SitesManager/Controller.php index e7b5a3f91f..7858d9a829 100644 --- a/plugins/SitesManager/Controller.php +++ b/plugins/SitesManager/Controller.php @@ -11,7 +11,6 @@ /** - * * @package Piwik_SitesManager */ class Piwik_SitesManager_Controller extends Piwik_Controller @@ -19,24 +18,22 @@ class Piwik_SitesManager_Controller extends Piwik_Controller function index() { $view = new Piwik_View('SitesManager/templates/SitesManager.tpl'); - $sites = Piwik_SitesManager_API::getSitesWithAdminAccess(); foreach($sites as &$site) { $site['alias_urls'] = Piwik_SitesManager_API::getSiteUrlsFromId($site['idsite']); } -// var_dump($sites);exit; - $view->sites = $sites; + $view->adminSites = $sites; + $view->menu = Piwik_GetAdminMenu(); echo $view->render(); } function displayJavascriptCode() { $jsTag = Piwik::getJavascriptCode(Piwik_Common::getRequestVar('idsite',1), Piwik_Url::getCurrentUrlWithoutFileName()); - $view = new Piwik_View('SitesManager/templates/DisplayJavascriptCode.tpl'); + $view->menu = Piwik_GetAdminMenu(); $view->jsTag = $jsTag; - echo $view->render(); } }
\ No newline at end of file |