Quellcode durchsuchen

fixed Route And for php 5.5

Piotr Labudda vor 9 Jahren
Ursprung
Commit
1e4515fcde
1 geänderte Dateien mit 13 neuen und 5 gelöschten Zeilen
  1. 13 5
      SE/se-lib/Route/Ant.php

+ 13 - 5
SE/se-lib/Route/Ant.php

@@ -21,11 +21,19 @@ Lib::loadClass('DBG');
  */
 class Route_Ant extends RouteBase {
 
-  public $pathTools = APP_PATH_SCHEMA . "/ant-tool/";
-  public $pathUrlActions = APP_PATH_SCHEMA . "/ant-url_action/";
-  public $antBin = APP_PATH_WWW . DS . 'stuff' . DS . 'dita-ot-2.3.3' . DS . 'bin' . DS . 'ant';
-  public $_antUrlProjects = [];// path => label
-  public $_antUrlProjectTemplates = [];// path => [ template => label ]
+  public $pathTools;
+  public $pathUrlActions;
+  public $antBin;
+  public $_antUrlProjects;
+  public $_antUrlProjectTemplates;
+
+  public function __construct() {
+    $this->pathTools = APP_PATH_SCHEMA . "/ant-tool/";
+    $this->pathUrlActions = APP_PATH_SCHEMA . "/ant-url_action/";
+    $this->antBin = APP_PATH_WWW . DS . 'stuff' . DS . 'dita-ot-2.3.3' . DS . 'bin' . DS . 'ant';
+    $this->_antUrlProjects = [];// path => label
+    $this->_antUrlProjectTemplates = [];// path => [ template => label ]
+  }
 
   public function defaultAction() {
     UI::gora();