Add Get/Post/Env/Cookie::t() that returns a trimmed string.
[platal.git] / classes / plglobals.php
index f614458..ab50d9f 100644 (file)
@@ -47,7 +47,7 @@ define('DEBUG_SMARTY', 4);
  */
 class PlGlobals
 {
-    public $coreVersion = '0.9.17';
+    public $coreVersion = PLATAL_CORE_VERSION;
 
     /** Debug level.
      * This is a combination of the DEBUG_ flags. As soon as at least
@@ -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);