commit 8d57569d283a442949c142ce472b3b413a4dd656
parent 6cd82c3e08a26fb908dc2ce8cff2762e98810201
Author: MTRNord <mtrnord1@gmail.com>
Date: Sat, 13 Dec 2014 20:45:22 +0100
try it with explode
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/core/backend/admin/blog/newpost.php b/core/backend/admin/blog/newpost.php
@@ -8,7 +8,7 @@ $currentdir = getcwd();
$root_2 = str_replace($root_1, '', $currentdir);
echo $root_2;
#$root_3 = preg_match('~/(.*?)]/~', $root_2, $root);
-preg_match_all("/\/(?:\/)*)/s", $root_2, $root);
+$root = explode("/", $root_2);
echo " x ";
print_r($root);
include('/core/config/variables.config.php');