@@ 1486-1509 (lines=24) @@ | ||
1483 | $arCallTemplateName = $function; |
|
1484 | $arCallTemplateNLS = $this->reqnls; |
|
1485 | break 2; |
|
1486 | } else if (!$arSuperContext[$checkpath.":".$arType.":".$function] && ($arTemplate=$templates[$arType]['any'])) { |
|
1487 | $arCallTemplate=$arType.".".$function.".any"; |
|
1488 | $arCallTemplateName = $function; |
|
1489 | $arCallTemplateNLS = "any"; |
|
1490 | break 2; |
|
1491 | } else { |
|
1492 | ||
1493 | if (!($arSuper=$AR->superClass[$arType])) { |
|
1494 | // no template found, no default.phtml found, try superclass. |
|
1495 | if ($subcpos = strpos($arType, '.')) { |
|
1496 | $arSuper = substr($arType, 0, $subcpos); |
|
1497 | } else { |
|
1498 | if (!class_exists($arType, false)) { |
|
1499 | // the given class was not yet loaded, so do that now |
|
1500 | $arTemp=$this->store->newobject('','',$arType,new object); |
|
1501 | } else { |
|
1502 | $arTemp=new $arType(); |
|
1503 | } |
|
1504 | $arSuper=get_parent_class($arTemp); |
|
1505 | } |
|
1506 | $AR->superClass[$arType]=$arSuper; |
|
1507 | } |
|
1508 | $arType=$arSuper; |
|
1509 | } |
|
1510 | } |
|
1511 | } |
|
1512 | ||
@@ 1699-1721 (lines=23) @@ | ||
1696 | $arCallTemplate=$arType.".".$arCallFunction.".".$this->reqnls; |
|
1697 | $arCallTemplateName = $arCallFunction; |
|
1698 | $arCallTemplateNLS = $this->reqnls; |
|
1699 | } else if (!$arSuperContext[$checkpath.":".$arType.":".$arCallFunction] && ($arTemplateId=$curr_templates[$arType][$arCallFunction]['any'])) { |
|
1700 | $arCallTemplate=$arType.".".$arCallFunction.".any"; |
|
1701 | $arCallTemplateName = $arCallFunction; |
|
1702 | $arCallTemplateNLS = 'any'; |
|
1703 | } else { |
|
1704 | ||
1705 | if (!($arSuper=$AR->superClass[$arType])) { |
|
1706 | // no template found, no default.phtml found, try superclass. |
|
1707 | if ($subcpos = strpos($arType, '.')) { |
|
1708 | $arSuper = substr($arType, 0, $subcpos); |
|
1709 | } else { |
|
1710 | if (!class_exists($arType, false )) { |
|
1711 | // the given class was not yet loaded, so do that now |
|
1712 | $arTemp=$this->store->newobject('','',$arType,new object); |
|
1713 | } else { |
|
1714 | $arTemp=new $arType(); |
|
1715 | } |
|
1716 | $arSuper=get_parent_class($arTemp); |
|
1717 | } |
|
1718 | $AR->superClass[$arType]=$arSuper; |
|
1719 | } |
|
1720 | $arType=$arSuper; |
|
1721 | } |
|
1722 | } |
|
1723 | if ($inLibrary) { |
|
1724 |