@@ 55-57 (lines=3) @@ | ||
52 | // change hardcoded links and images to use a placeholder for the root |
|
53 | if ($me->store->get_config("root")) { |
|
54 | $root = $me->store->get_config("root"); |
|
55 | if (substr($root, -3) == "/$nls") { |
|
56 | $root = substr($root, 0, -3); |
|
57 | } |
|
58 | $find[] = "%(http[s]?://)?\\Q".$AR->host.$root."\\E".$nls_match."(/)%"; |
|
59 | $repl[] = "{arBase\\2}\\3"; |
|
60 |
@@ 696-698 (lines=3) @@ | ||
693 | $url = current( $url ); |
|
694 | } |
|
695 | if ($url) { |
|
696 | if (substr($url, -1)=='/') { |
|
697 | $url=substr($url, 0, -1); |
|
698 | } |
|
699 | $url .= $rootoptions_nonls; |
|
700 | } |
|
701 | } |