summaryrefslogtreecommitdiffstats
path: root/02_fix_class_mapping.patch
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2010-05-23 13:13:03 +0200
committerRemi Collet <fedora@famillecollet.com>2010-05-23 13:13:03 +0200
commit1cf882aff9f282f79a75d9078a42ff75b640d855 (patch)
tree9e81523c42f56ebb686ab2e4ce1d5c5c8c94d29c /02_fix_class_mapping.patch
parent73389078895930be498ea01bcf06bfa6fed2a9e1 (diff)
start cleaning
Diffstat (limited to '02_fix_class_mapping.patch')
-rw-r--r--02_fix_class_mapping.patch50
1 files changed, 50 insertions, 0 deletions
diff --git a/02_fix_class_mapping.patch b/02_fix_class_mapping.patch
new file mode 100644
index 0000000..95b8ea8
--- /dev/null
+++ b/02_fix_class_mapping.patch
@@ -0,0 +1,50 @@
+--- gosa-core~/include/functions.inc 2009-02-16 14:19:18.000000000 +0100
++++ gosa-core/include/functions.inc 2009-02-16 14:18:15.000000000 +0100
+@@ -73,7 +73,7 @@
+ $svn_revision = '$Revision: 13395 $';
+
+ /* Include required files */
+-require_once("class_location.inc");
++require_once("/var/cache/gosa/class.cache");
+ require_once ("functions_debug.inc");
+ require_once ("accept-to-gettext.inc");
+
+--- gosa-core~/update-gosa 2009-02-16 14:19:18.000000000 +0100
++++ gosa-core/update-gosa 2009-02-16 14:18:15.000000000 +0100
+@@ -21,7 +21,7 @@
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+-define ("GOSA_HOME", dirname(__FILE__));
++define ("GOSA_HOME", "/usr/share/gosa");
+ define ("LOCALE_DIR", GOSA_HOME."/locale");
+ define ("PLUGSTATE_DIR", GOSA_HOME."/state");
+
+@@ -122,8 +122,8 @@
+ function rescan_classes()
+ {
+ echo "Updating class cache...\n";
+- $class_mapping= get_classes();
+- $filename= GOSA_HOME."/include/class_location.inc";
++ $class_mapping= get_classes("/usr/share/gosa");
++ $filename= "/var/cache/gosa/class.cache";
+
+ /* Sanity checks */
+ if (!file_exists($filename) || is_writable($filename)) {
+--- gosa-core~/include/class_config.inc 2009-02-16 14:19:18.000000000 +0100
++++ gosa-core/include/class_config.inc 2009-02-16 14:18:15.000000000 +0100
+@@ -76,12 +76,12 @@
+ if we have installed or removed plugins.
+ */
+ if(session::global_is_set("class_location.inc:timestamp")){
+- $tmp = stat("../include/class_location.inc");
++ $tmp = $tmp = stat("/var/cache/gosa/class.cache");
+ 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::global_set("class_location.inc:timestamp",$tmp['mtime']);
+
+ if($this->filename != "" && filemtime($this->filename) != $this->last_modified){