aboutsummaryrefslogtreecommitdiff
path: root/ratatoeskr/main.php
diff options
context:
space:
mode:
Diffstat (limited to 'ratatoeskr/main.php')
-rw-r--r--ratatoeskr/main.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/ratatoeskr/main.php b/ratatoeskr/main.php
index c5f0b89..c88cc8b 100644
--- a/ratatoeskr/main.php
+++ b/ratatoeskr/main.php
@@ -94,7 +94,7 @@ function _ratatoeskr()
}));
$urlpath = explode("/", @$_GET["action"]);
- $rel_path_to_root = implode("/", array_merge(["."], array_repeat("..", count($urlpath) - 1)));
+ $rel_path_to_root = implode("/", array_merge(["."], array_fill(0, count($urlpath) - 1, "..")));
$GLOBALS["rel_path_to_root"] = $rel_path_to_root;
$data = ["rel_path_to_root" => $rel_path_to_root];
$ste->vars["rel_path_to_root"] = $rel_path_to_root;