aboutsummaryrefslogtreecommitdiff
path: root/ratatoeskr/main.php
diff options
context:
space:
mode:
authorLaria Carolin Chabowski <laria@laria.me>2020-11-08 17:45:02 +0100
committerLaria Carolin Chabowski <laria@laria.me>2020-11-08 17:47:21 +0100
commit7b0ed66d6b972bfc88d7b9a1a0e1369f01084189 (patch)
treec45bb027cc62438774c190ffd47c5d43e19e673d /ratatoeskr/main.php
parentd90aea9e87ffc51b8d073eef070cdc313364e287 (diff)
downloadratatoeskr-cms-7b0ed66d6b972bfc88d7b9a1a0e1369f01084189.tar.gz
ratatoeskr-cms-7b0ed66d6b972bfc88d7b9a1a0e1369f01084189.tar.bz2
ratatoeskr-cms-7b0ed66d6b972bfc88d7b9a1a0e1369f01084189.zip
Replace array_repeat() with equivalent array_fill() calls
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;