From 4fa43b68d540bdb8082791fda4b00d4c6c09069f Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 16 Feb 2009 13:14:36 +0000 Subject: [PATCH] Updated redhat patch git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13422 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/redhat/02_fix_class_mapping.patch | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/gosa-core/redhat/02_fix_class_mapping.patch b/gosa-core/redhat/02_fix_class_mapping.patch index 07316ccb2..e23f535a5 100644 --- a/gosa-core/redhat/02_fix_class_mapping.patch +++ b/gosa-core/redhat/02_fix_class_mapping.patch @@ -1,21 +1,23 @@ diff -urNad gosa-core~/include/class_config.inc gosa-core/include/class_config.inc ---- gosa-core~/include/class_config.inc 2008-07-10 17:18:52.000000000 +0200 -+++ gosa-core/include/class_config.inc 2008-07-15 10:00:12.000000000 +0200 +--- gosa-core~/include/class_config.inc 2008-07-10 17:18:52.000000000 +0200 ++++ gosa-core/include/class_config.inc 2008-07-15 10:00:12.000000000 +0200 @@ -76,12 +76,12 @@ - if we have installed or removed plugins. + if we have installed or removed plugins. */ - if(session::is_set("class_location.inc:timestamp")){ + if(session::global_is_set("class_location.inc:timestamp")){ - $tmp = stat("../include/class_location.inc"); + $tmp = stat("/var/cache/gosa/class.cache"); - if($tmp['mtime'] != session::get("class_location.inc:timestamp")){ - session::un_set("plist"); + if($tmp['mtime'] != session::global_get("class_location.inc:timestamp")){ + session::global_un_set("plist"); } } - $tmp = stat("../include/class_location.inc"); + $tmp = stat("/var/cache/gosa/class.cache"); - session::set("class_location.inc:timestamp",$tmp['mtime']); - - + session::global_set("class_location.inc:timestamp",$tmp['mtime']); + + if($this->filename != "" && filemtime($this->filename) != $this->last_modified){ + + diff -urNad gosa-core~/include/functions.inc gosa-core/include/functions.inc --- gosa-core~/include/functions.inc 2008-07-15 09:58:50.000000000 +0200 +++ gosa-core/include/functions.inc 2008-07-15 09:58:51.000000000 +0200 -- 2.30.2