|
@@ 2054-2061 (lines=8) @@
|
| 2051 |
|
if ($ARCurrent->ARShowTemplateBorders) { |
| 2052 |
|
echo "<!-- arTemplateEnd -->"; |
| 2053 |
|
} |
| 2054 |
|
if ( !$AR->contextCallHandler ) { /* prevent oncall from re-entering here */ |
| 2055 |
|
$AR->contextCallHandler = true; |
| 2056 |
|
$temp = $ARCurrent->arResult; /* event listeners will change ARCurrent->arResult */ |
| 2057 |
|
$eventData->arResult = $temp; |
| 2058 |
|
ar_events::fire('oncall', $eventData ); |
| 2059 |
|
$ARCurrent->arResult = $temp; /* restore correct result */ |
| 2060 |
|
$AR->contextCallHandler = false; |
| 2061 |
|
} |
| 2062 |
|
} |
| 2063 |
|
} |
| 2064 |
|
array_pop($ARCurrent->arCallStack); |
|
@@ 2714-2721 (lines=8) @@
|
| 2711 |
|
$arResult = $arTemplates->import($template["arTemplateId"], $template["arCallTemplate"], "", $this); |
| 2712 |
|
restore_error_handler(); |
| 2713 |
|
|
| 2714 |
|
if ( !$AR->contextCallHandler ) { /* prevent oncall from re-entering here */ |
| 2715 |
|
$AR->contextCallHandler = true; |
| 2716 |
|
$temp = $ARCurrent->arResult; /* event listeners will change ARCurrent->arResult */ |
| 2717 |
|
$eventData->arResult = $arResult; |
| 2718 |
|
ar_events::fire('oncall', $eventData ); |
| 2719 |
|
$ARCurrent->arResult = $temp; /* restore correct result */ |
| 2720 |
|
$AR->contextCallHandler = false; |
| 2721 |
|
} |
| 2722 |
|
} |
| 2723 |
|
array_pop($ARCurrent->arCallStack); |
| 2724 |
|
$this->popContext(); |