X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=classes%2Fplglobals.php;h=fd11a25994af337face179bebe498fc8dee73c35;hb=c4bcb1697481d3a6549f228739f17dc081641491;hp=a3e62b2e8f89115275aa64888083e6547e7db192;hpb=a105f588e354b59ff3bf2095e8e977533cd46220;p=platal.git diff --git a/classes/plglobals.php b/classes/plglobals.php index a3e62b2..fd11a25 100644 --- a/classes/plglobals.php +++ b/classes/plglobals.php @@ -1,6 +1,6 @@ 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(); } @@ -185,10 +202,10 @@ class PlGlobals /** Change dynamic config file * @param conf array of keys and values to add or replace * @param category name of category to change - * + * * Opens the dynamic conf file and set values from conf in specified * category. Updates config vars too. - */ + */ public function changeDynamicConfig($conf, $category = 'Core') { $dynamicfile = $this->spoolroot.'/spool/conf/platal.dynamic.conf'; @@ -231,7 +248,7 @@ class PlGlobals if (isset($conflower[strtolower($k)])) { $array[$same][$k] = $v; } - } + } } } // writes the file over