Code Duplication    Length = 3-4 lines in 2 locations

lib/objects/ariadne_object.php 2 locations

@@ 783-785 (lines=3) @@
780
		}
781
782
		do {
783
			if (!$config=$ARConfig->cache[$checkpath]) {
784
				$config=($ARConfig->cache[$checkpath]) ? $ARConfig->cache[$checkpath] : $this->loadConfig($checkpath);
785
			}
786
			if ($config) {
787
				$checkNLS = $nls;
788
				if (!$checkNLS) {
@@ 1661-1664 (lines=4) @@
1658
				$context = $this->getContext(1);
1659
				$arLibrary = $context['arLibrary'];
1660
				$arLibraryPath = $context['arLibraryPath'];
1661
			} else {
1662
				$config = (isset($ARConfig->cache[$path])) ? $ARConfig->cache[$path] : $this->loadConfig($path);
1663
				$arLibraryPath = $config->libraries[$arLibrary];
1664
			}
1665
			$arCallFunction = substr($arCallFunction, $libpos+1);
1666
			if ($arLibraryPath) {
1667
				debug("getPinpTemplate: found library '$arLibrary'. Searching for $arCallFunction on '".$config->libraries[$arLibrary]."' up to '$top'");