From 2e3d4369154d0b64de328446532af643986d5d99 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 8 Jul 2008 13:11:44 +0000 Subject: [PATCH] Updated menu reload. -Now it works as expeted. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11560 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_config.inc | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/gosa-core/include/class_config.inc b/gosa-core/include/class_config.inc index b9d34dc6f..c5d0da140 100644 --- a/gosa-core/include/class_config.inc +++ b/gosa-core/include/class_config.inc @@ -70,6 +70,7 @@ class config { function check_and_reload() { + global $ui; /* Check if class_location.inc has changed, this is the case if we have installed or removed plugins. @@ -77,18 +78,7 @@ class config { if(session::is_set("class_location.inc:timestamp")){ $tmp = stat("../include/class_location.inc"); if($tmp['mtime'] != session::get("class_location.inc:timestamp")){ - - /* Refresh users ACLs */ - $ui= get_userinfo(); - $ui->loadACL(); - session::set('ui',$ui); - - /* Reset menu and iconmenu */ - if(session::is_set("plist")){ - $plist = session::get("plist"); - $plist->reset_menus(); - session::set("plist",$plist); - } + session::un_set("plist"); } } $tmp = stat("../include/class_location.inc"); -- 2.30.2