X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=classes%2Fplglobals.php;h=9089e1f3971c9171baf1fae0ef6fe72b1f31046c;hb=c158b99a51c5d9cb499ecb2e6a169f83ca6aef2b;hp=f614458a6b59cb9fce03e70ea79896f00752f64f;hpb=47fa97fed308292ab5e7bed6f870b39f55747aa8;p=platal.git diff --git a/classes/plglobals.php b/classes/plglobals.php index f614458..9089e1f 100644 --- a/classes/plglobals.php +++ b/classes/plglobals.php @@ -92,7 +92,7 @@ class PlGlobals */ public function __construct(array $files) { - $this->spoolroot = dirname(dirname(__FILE__)); + $this->spoolroot = dirname(dirname(dirname(__FILE__))); $this->readConfig($files); if (isset($_SERVER) && isset($_SERVER['SERVER_NAME'])) { @@ -104,6 +104,13 @@ class PlGlobals $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);