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
|
@@ 772-775 (lines=4) @@
|
| 769 |
|
$newpath = $checkpath; |
| 770 |
|
$c_redirects = count($redirects); |
| 771 |
|
$c_redirects_done = 0; |
| 772 |
|
while (count($redirects) && ($redir = array_pop($redirects)) && $redir['keepurl'] && substr($newpath, 0, strlen($redir['dest'])) == $redir['dest']) { |
| 773 |
|
$c_redirects_done++; |
| 774 |
|
$newpath = $redir['src'].substr($newpath, strlen($redir['dest'])); |
| 775 |
|
} |
| 776 |
|
|
| 777 |
|
if ($c_redirects_done == $c_redirects) { |
| 778 |
|
$checkpath = $redir['src']; |