commit 3d65db57db67a129037cbd7e009868afa2b1f9be
parent 8d57569d283a442949c142ce472b3b413a4dd656
Author: MTRNord <mtrnord1@gmail.com>
Date: Sat, 13 Dec 2014 20:47:38 +0100
It works! (maybe)
Diffstat:
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/core/backend/admin/blog/newpost.php b/core/backend/admin/blog/newpost.php
@@ -6,12 +6,8 @@ header("Cache-Control: no-cache, must-revalidate, no-store");
$root_1 = realpath($_SERVER["DOCUMENT_ROOT"]);
$currentdir = getcwd();
$root_2 = str_replace($root_1, '', $currentdir);
-echo $root_2;
-#$root_3 = preg_match('~/(.*?)]/~', $root_2, $root);
$root = explode("/", $root_2);
-echo " x ";
-print_r($root);
-include('/core/config/variables.config.php');
+include($root_1 . $root[1] . '/core/config/variables.config.php');
################
# lang support #