1 diff -urNad gosa-core~/include/class_config.inc gosa-core/include/class_config.inc
2 --- gosa-core~/include/class_config.inc 2008-07-10 17:18:52.000000000 +0200
3 +++ gosa-core/include/class_config.inc 2008-07-15 10:00:12.000000000 +0200
4 @@ -76,12 +76,12 @@
5 if we have installed or removed plugins.
6 */
7 if(session::is_set("class_location.inc:timestamp")){
8 - $tmp = stat("../include/class_location.inc");
9 + $tmp = stat("/var/cache/gosa/class.cache");
10 if($tmp['mtime'] != session::get("class_location.inc:timestamp")){
11 session::un_set("plist");
12 }
13 }
14 - $tmp = stat("../include/class_location.inc");
15 + $tmp = stat("/var/cache/gosa/class.cache");
16 session::set("class_location.inc:timestamp",$tmp['mtime']);
19 diff -urNad gosa-core~/include/functions.inc gosa-core/include/functions.inc
20 --- gosa-core~/include/functions.inc 2008-07-15 09:58:50.000000000 +0200
21 +++ gosa-core/include/functions.inc 2008-07-15 09:58:51.000000000 +0200
22 @@ -73,7 +73,7 @@
23 $svn_revision = '$Revision: 9246 $';
25 /* Include required files */
26 -require_once("class_location.inc");
27 +require_once("/var/cache/gosa/class.cache");
28 require_once ("functions_debug.inc");
29 require_once ("accept-to-gettext.inc");
31 diff -urNad gosa-core~/update-gosa gosa-core/update-gosa
32 --- gosa-core~/update-gosa 2008-06-10 09:56:22.000000000 +0200
33 +++ gosa-core/update-gosa 2008-07-15 09:58:51.000000000 +0200
34 @@ -21,7 +21,7 @@
35 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
36 */
38 -define ("GOSA_HOME", dirname(__FILE__));
39 +define ("GOSA_HOME", "/usr/share/gosa");
40 define ("LOCALE_DIR", GOSA_HOME."/locale");
41 define ("PLUGSTATE_DIR", GOSA_HOME."/state");
43 @@ -122,8 +122,8 @@
44 function rescan_classes()
45 {
46 echo "Updating class cache...\n";
47 - $class_mapping= get_classes();
48 - $filename= GOSA_HOME."/include/class_location.inc";
49 + $class_mapping= get_classes("/usr/share/gosa");
50 + $filename= "/var/cache/gosa/class.cache";
52 /* Sanity checks */
53 if (!file_exists($filename) || is_writable($filename)) {