From 278f052ad3bfc5d8d28e0cb096c6877691965711 Mon Sep 17 00:00:00 2001
From: mrdrogdrog <tilman.vatteroth@udo.edu>
Date: Wed, 30 Sep 2015 17:53:23 +0200
Subject: [PATCH] Less-Compiler braucht wegen URL-Rewrite den RootPfad

---
 config/config.php | 2 +-
 less/style.php    | 8 +++++---
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/config/config.php b/config/config.php
index c2ae3e1..8d1beec 100644
--- a/config/config.php
+++ b/config/config.php
@@ -1,3 +1,3 @@
 <?php
-const root_dir="/"
+const ROOT_DIR="/"
 ?>
diff --git a/less/style.php b/less/style.php
index f450f88..2dc8a02 100644
--- a/less/style.php
+++ b/less/style.php
@@ -11,7 +11,9 @@ if (!isset($_GET["name"])) {
 
 $less_file = $_GET["name"]; //"panels/departure/style.less";
 $debug=isset($_GET["debug"]);
-$root_dir="/infoscreen";
+
+include "config/config.php";
+echo ROOT_DIR;
 
 
 $panel = null;
@@ -64,14 +66,14 @@ if (!file_exists($cache_file)) {
 }
 
 if ($debug) {
+    echo "cache-name: " . $cache_file . "\n";
     echo "content:\n";
     if (!isset($content))
         echo file_get_contents($cache_file)."\n";
     else
         echo $content;
-    echo "cache-name: " . $cache_name . "\n";
 } else {
-    header("Location: $root_dir/$cache_file");
+    header("Location: ".ROOT_DIR."/$cache_file");
 }
 
 
-- 
GitLab