1 --- gosa-core~/include/functions.inc 2009-02-16 14:19:18.000000000 +0100
2 +++ gosa-core/include/functions.inc 2009-02-16 14:18:15.000000000 +0100
3 @@ -73,7 +73,7 @@
4 $svn_revision = '$Revision: 13395 $';
6 /* Include required files */
7 -require_once("class_location.inc");
8 +require_once("/var/cache/gosa/class.cache");
9 require_once ("functions_debug.inc");
10 require_once ("accept-to-gettext.inc");
12 --- gosa-core~/update-gosa 2009-02-16 14:19:18.000000000 +0100
13 +++ gosa-core/update-gosa 2009-02-16 14:18:15.000000000 +0100
14 @@ -21,7 +21,7 @@
15 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16 */
18 -define ("GOSA_HOME", dirname(__FILE__));
19 +define ("GOSA_HOME", "/usr/share/gosa");
20 define ("LOCALE_DIR", GOSA_HOME."/locale");
21 define ("PLUGSTATE_DIR", GOSA_HOME."/state");
23 @@ -122,8 +122,8 @@
24 function rescan_classes()
25 {
26 echo "Updating class cache...\n";
27 - $class_mapping= get_classes();
28 - $filename= GOSA_HOME."/include/class_location.inc";
29 + $class_mapping= get_classes("/usr/share/gosa");
30 + $filename= "/var/cache/gosa/class.cache";
32 /* Sanity checks */
33 if (!file_exists($filename) || is_writable($filename)) {
34 --- gosa-core~/include/class_config.inc 2009-02-16 14:19:18.000000000 +0100
35 +++ gosa-core/include/class_config.inc 2009-02-16 14:18:15.000000000 +0100
36 @@ -76,12 +76,12 @@
37 if we have installed or removed plugins.
38 */
39 if(session::global_is_set("class_location.inc:timestamp")){
40 - $tmp = stat("../include/class_location.inc");
41 + $tmp = $tmp = stat("/var/cache/gosa/class.cache");
42 if($tmp['mtime'] != session::global_get("class_location.inc:timestamp")){
43 session::global_un_set("plist");
44 }
45 }
46 - $tmp = stat("../include/class_location.inc");
47 + $tmp = stat("/var/cache/gosa/class.cache");
48 session::global_set("class_location.inc:timestamp",$tmp['mtime']);
50 if($this->filename != "" && filemtime($this->filename) != $this->last_modified){