Code

Updated menu reload.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 8 Jul 2008 13:11:44 +0000 (13:11 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 8 Jul 2008 13:11:44 +0000 (13:11 +0000)
-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

index b9d34dc6f47d4e5ffbf99a7e46df8658c3854875..c5d0da140ba65cb384fed5d22c9ab91c97ecbbe8 100644 (file)
@@ -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");