Code Duplication    Length = 3-4 lines in 2 locations

lib/objects/ariadne_object.php 2 locations

@@ 792-794 (lines=3) @@
789
		}
790
791
		do {
792
			if (!$config=$ARConfig->cache[$checkpath]) {
793
				$config=($ARConfig->cache[$checkpath]) ? $ARConfig->cache[$checkpath] : $this->loadConfig($checkpath);
794
			}
795
			if ($config) {
796
				$checkNLS = $nls;
797
				if (!$checkNLS) {
@@ 1656-1659 (lines=4) @@
1653
				$context = $this->getContext(1);
1654
				$arLibrary = $context['arLibrary'];
1655
				$arLibraryPath = $context['arLibraryPath'];
1656
			} else {
1657
				$config = (isset($ARConfig->cache[$path])) ? $ARConfig->cache[$path] : $this->loadConfig($path);
1658
				$arLibraryPath = $config->libraries[$arLibrary];
1659
			}
1660
			$arCallFunction = substr($arCallFunction, $libpos+1);
1661
			if ($arLibraryPath) {
1662
				debug("getPinpTemplate: found library '$arLibrary'. Searching for $arCallFunction on '".$config->libraries[$arLibrary]."' up to '$top'");