From 7b0ed66d6b972bfc88d7b9a1a0e1369f01084189 Mon Sep 17 00:00:00 2001 From: Laria Carolin Chabowski Date: Sun, 8 Nov 2020 17:45:02 +0100 Subject: Replace array_repeat() with equivalent array_fill() calls --- ratatoeskr/main.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ratatoeskr/main.php') 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; -- cgit v1.2.3-70-g09d2