lib/modules/mod_keepurl.php 1 location
|
@@ 13-15 (lines=3) @@
|
| 10 |
|
$newpath = $path; |
| 11 |
|
$redirects = $ARCurrent->shortcut_redirect; |
| 12 |
|
if (is_array($redirects)) { |
| 13 |
|
while (count($redirects) && ($redir = array_pop($redirects)) && substr($newpath, 0, strlen($redir['dest'])) == $redir['dest'] && $redir['keepurl']) { |
| 14 |
|
$newpath = $redir['src'].substr($newpath, strlen($redir['dest'])); |
| 15 |
|
} |
| 16 |
|
} |
| 17 |
|
|
| 18 |
|
return $newpath; |
lib/objects/ariadne_object.php 1 location
|
@@ 781-784 (lines=4) @@
|
| 778 |
|
$newpath = $checkpath; |
| 779 |
|
$c_redirects = count($redirects); |
| 780 |
|
$c_redirects_done = 0; |
| 781 |
|
while (count($redirects) && ($redir = array_pop($redirects)) && $redir['keepurl'] && substr($newpath, 0, strlen($redir['dest'])) == $redir['dest']) { |
| 782 |
|
$c_redirects_done++; |
| 783 |
|
$newpath = $redir['src'].substr($newpath, strlen($redir['dest'])); |
| 784 |
|
} |
| 785 |
|
|
| 786 |
|
if ($c_redirects_done == $c_redirects) { |
| 787 |
|
$checkpath = $redir['src']; |