From ce17142f0f30f76e4d4383a6387d1b7ef70adaec Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 8 Jul 2008 12:18:12 +0000 Subject: [PATCH] Updated menu reload. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11558 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_pluglist.inc | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/gosa-core/include/class_pluglist.inc b/gosa-core/include/class_pluglist.inc index 114ab5ddd..a1937cafd 100644 --- a/gosa-core/include/class_pluglist.inc +++ b/gosa-core/include/class_pluglist.inc @@ -145,15 +145,14 @@ class pluglist { /* Check if class_location.inc has changed, this is the case if we have installed or removed plugins. */ - if(!session::is_set("class_location.inc:timestamp")){ - $tmp = stat("../include/class_location.inc"); - session::set("class_location.inc:timestamp",$tmp['mtime']); - }else{ + if(session::is_set("class_location.inc:timestamp")){ $tmp = stat("../include/class_location.inc"); if($tmp['mtime'] != session::get("class_location.inc:timestamp")){ $this->menu = ""; } } + $tmp = stat("../include/class_location.inc"); + session::set("class_location.inc:timestamp",$tmp['mtime']); if ($this->menu == ""){ $first= TRUE; @@ -270,15 +269,14 @@ class pluglist { /* Check if class_location.inc has changed, this is the case if we have installed or removed plugins. */ - if(!session::is_set("class_location.inc:timestamp")){ - $tmp = stat("../include/class_location.inc"); - session::set("class_location.inc:timestamp",$tmp['mtime']); - }else{ + if(session::is_set("class_location.inc:timestamp")){ $tmp = stat("../include/class_location.inc"); if($tmp['mtime'] != session::get("class_location.inc:timestamp")){ $this->iconmenu = ""; } } + $tmp = stat("../include/class_location.inc"); + session::set("class_location.inc:timestamp",$tmp['mtime']); if ($this->iconmenu == ""){ $cfg= $this->config->data['MENU']; -- 2.30.2