Code Duplication    Length = 3-4 lines in 2 locations

lib/objects/ariadne_object.php 2 locations

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