From 888516587f0cda06601ab943d2851bfaf5b23578 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 8 Jul 2008 11:56:58 +0000 Subject: [PATCH] Updated pluglist -Recreate Icon menu if class_lcoation has changed. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11557 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_pluglist.inc | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/gosa-core/include/class_pluglist.inc b/gosa-core/include/class_pluglist.inc index 3d892c8e3..114ab5ddd 100644 --- a/gosa-core/include/class_pluglist.inc +++ b/gosa-core/include/class_pluglist.inc @@ -267,6 +267,19 @@ class pluglist { { global $class_mapping; + /* 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{ + $tmp = stat("../include/class_location.inc"); + if($tmp['mtime'] != session::get("class_location.inc:timestamp")){ + $this->iconmenu = ""; + } + } + if ($this->iconmenu == ""){ $cfg= $this->config->data['MENU']; -- 2.30.2