1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-08 15:57:01 +02:00
This commit is contained in:
Ryan Cramer
2020-09-22 10:59:06 -04:00
parent 03ea0ea60d
commit 17d7828ac3

View File

@@ -572,7 +572,7 @@ class WireInput extends Wire {
if($get < 0) {
// retrieve from end
$get = abs($get);
$get = abs($get)-1;
$urlSegments = array_reverse($this->urlSegments);
return isset($urlSegments[$get]) ? $urlSegments[$get] : '';
}