|
@@ 1985-1992 (lines=8) @@
|
| 1982 |
|
if ($ARCurrent->ARShowTemplateBorders) { |
| 1983 |
|
echo "<!-- arTemplateEnd -->"; |
| 1984 |
|
} |
| 1985 |
|
if ( !$AR->contextCallHandler ) { /* prevent oncall from re-entering here */ |
| 1986 |
|
$AR->contextCallHandler = true; |
| 1987 |
|
$temp = $ARCurrent->arResult; /* event listeners will change ARCurrent->arResult */ |
| 1988 |
|
$eventData->arResult = $temp; |
| 1989 |
|
ar_events::fire('oncall', $eventData ); |
| 1990 |
|
$ARCurrent->arResult = $temp; /* restore correct result */ |
| 1991 |
|
$AR->contextCallHandler = false; |
| 1992 |
|
} |
| 1993 |
|
} |
| 1994 |
|
} |
| 1995 |
|
array_pop($ARCurrent->arCallStack); |
|
@@ 2649-2656 (lines=8) @@
|
| 2646 |
|
} |
| 2647 |
|
restore_error_handler(); |
| 2648 |
|
|
| 2649 |
|
if ( !$AR->contextCallHandler ) { /* prevent oncall from re-entering here */ |
| 2650 |
|
$AR->contextCallHandler = true; |
| 2651 |
|
$temp = $ARCurrent->arResult; /* event listeners will change ARCurrent->arResult */ |
| 2652 |
|
$eventData->arResult = $arResult; |
| 2653 |
|
ar_events::fire('oncall', $eventData ); |
| 2654 |
|
$ARCurrent->arResult = $temp; /* restore correct result */ |
| 2655 |
|
$AR->contextCallHandler = false; |
| 2656 |
|
} |
| 2657 |
|
} |
| 2658 |
|
array_pop($ARCurrent->arCallStack); |
| 2659 |
|
$this->popContext(); |