diff --git a/modules/base/logout.php b/modules/base/logout.php index 5d93fc25d..192735a8c 100644 --- a/modules/base/logout.php +++ b/modules/base/logout.php @@ -35,10 +35,10 @@ class owa_logoutController extends owa_controller { function action() { - $auth = &owa_auth::get_instance(); + $auth = owa_auth::get_instance(); $auth->deleteCredentials(); $this->setRedirectAction('base.loginForm'); } } -?> \ No newline at end of file +?> diff --git a/modules/base/report.php b/modules/base/report.php index 714b9e323..fd114565d 100644 --- a/modules/base/report.php +++ b/modules/base/report.php @@ -66,6 +66,8 @@ function render($data) { // Set navigation $this->body->set('top_level_report_nav', $this->get('top_level_report_nav')); + $this->body->set('currentSiteId', $this->get('currentSiteId')); + // load body template $this->body->set_template('report.tpl'); @@ -100,6 +102,7 @@ function render($data) { $this->setCss("base/css/owa.report.css"); $this->setCss('base/css/ui.jqgrid.css'); $this->setCss('base/css/chosen/chosen.css'); + } /** diff --git a/modules/base/sites.php b/modules/base/sites.php index 91d82f1d2..3b79e40f0 100644 --- a/modules/base/sites.php +++ b/modules/base/sites.php @@ -42,7 +42,7 @@ function __construct($params) { function action() { $s = owa_coreAPI::entityFactory('base.site'); - $sites = $this->getAllowedSitesForCurrentUserAndControllerCap(); + $sites = $this->getSitesAllowedForCurrentUser(); $this->set('tracked_sites', $sites); $this->setSubview('base.sites'); $this->setView('base.options'); diff --git a/modules/base/templates/report.tpl b/modules/base/templates/report.tpl index 56a86938a..79e2b1ccc 100644 --- a/modules/base/templates/report.tpl +++ b/modules/base/templates/report.tpl @@ -26,7 +26,7 @@ jQuery(document).ready(function(){
- makeNavigationMenu($top_level_report_nav);?> + makeNavigationMenu($top_level_report_nav, $currentSiteId);?>
diff --git a/modules/base/templates/report_nav.tpl b/modules/base/templates/report_nav.tpl index f64cab6f2..4a80643a8 100644 --- a/modules/base/templates/report_nav.tpl +++ b/modules/base/templates/report_nav.tpl @@ -2,6 +2,7 @@