moved cache creation from modules.inc to main.php
This commit is contained in:
parent
4753a294f0
commit
68f0942727
|
@ -462,10 +462,6 @@ class accountContainer {
|
||||||
// Set startpage
|
// Set startpage
|
||||||
$this->current_page=0;
|
$this->current_page=0;
|
||||||
$this->subpage='attributes';
|
$this->subpage='attributes';
|
||||||
// create cache if needed
|
|
||||||
if (!isset($_SESSION['cache'])) {
|
|
||||||
$_SESSION['cache'] = new cache();
|
|
||||||
}
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -28,6 +28,14 @@ $Id$
|
||||||
* @author Roland Gruber
|
* @author Roland Gruber
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/** LDAP attibute cache */
|
||||||
|
include_once('../lib/cache.inc');
|
||||||
|
|
||||||
|
// create cache object
|
||||||
|
if (!isset($_SESSION['cache'])) {
|
||||||
|
$_SESSION['cache'] = new cache();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// check if all suffixes in conf-file exist
|
// check if all suffixes in conf-file exist
|
||||||
$conf = $_SESSION['config'];
|
$conf = $_SESSION['config'];
|
||||||
|
|
Loading…
Reference in New Issue