Code Duplication    Length = 3-3 lines in 2 locations

lib/modules/mod_url.php 1 location

@@ 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

lib/objects/ariadne_object.php 1 location

@@ 693-695 (lines=3) @@
690
					$url = current( $url );
691
				}
692
				if ($url) {
693
					if (substr($url, -1)=='/') {
694
						$url=substr($url, 0, -1);
695
					}
696
					$url .= $rootoptions_nonls;
697
				}
698
			}