The constructor of PlGlobals was not the place to initialise dynamic data
since $globals does not exist then whereas XDB requires $globals.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
$platal =& $this;
$globalclass = PL_GLOBALS_CLASS;
$globals = new $globalclass();
+ $globals->init();
$sessionclass = PL_SESSION_CLASS;
$session = new $sessionclass();
if (!$session->startAvailableAuth()) {
$this->setLocale();
}
+ /** Initialiase dynamic data in the object.
+ * This is te place to read data from the database if needed.
+ */
+ public function init()
+ {
+ }
+
private function readIniFile($filename)
{
$array = parse_ini_file($filename, true);