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