X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=classes%2Fplglobals.php;h=3482155db30ade5fc37a02ae92304f0088e05c4c;hb=c16ab9ce3537fad8a05ecba1cdb25268440aec29;hp=35369b486664900a88cb88c0ace154403e6acdf9;hpb=e3c131627aa03f7107709e6d44c7840c09847acd;p=platal.git diff --git a/classes/plglobals.php b/classes/plglobals.php index 35369b4..3482155 100644 --- a/classes/plglobals.php +++ b/classes/plglobals.php @@ -1,6 +1,6 @@ spoolroot = dirname(dirname(dirname(__FILE__))); + $this->coreroot = dirname(dirname(__FILE__)); + $this->spoolroot = dirname($this->coreroot); - $this->readConfig($files); + if (!is_null($files)) { + $this->readConfig($files); + } if (isset($_SERVER) && isset($_SERVER['SERVER_NAME'])) { $base = empty($_SERVER['HTTPS']) ? 'http://' : 'https://'; $this->baseurl = @trim($base .$_SERVER['SERVER_NAME'].dirname($_SERVER['PHP_SELF']), '/'); $this->baseurl_http = @trim('http://'.$_SERVER['SERVER_NAME'].dirname($_SERVER['PHP_SELF']), '/'); } + assert_options(ASSERT_ACTIVE, $this->debug != 0); $this->setLocale(); } @@ -281,5 +286,5 @@ class PlGlobals } } -// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8: +// vim:set et sw=4 sts=4 sws=4 foldmethod=marker fenc=utf-8: ?>