@@ 1993-2000 (lines=8) @@ | ||
1990 | if ($ARCurrent->ARShowTemplateBorders) { |
|
1991 | echo "<!-- arTemplateEnd -->"; |
|
1992 | } |
|
1993 | if ( !$AR->contextCallHandler ) { /* prevent oncall from re-entering here */ |
|
1994 | $AR->contextCallHandler = true; |
|
1995 | $temp = $ARCurrent->arResult; /* event listeners will change ARCurrent->arResult */ |
|
1996 | $eventData->arResult = $temp; |
|
1997 | ar_events::fire('oncall', $eventData ); |
|
1998 | $ARCurrent->arResult = $temp; /* restore correct result */ |
|
1999 | $AR->contextCallHandler = false; |
|
2000 | } |
|
2001 | } |
|
2002 | } |
|
2003 | array_pop($ARCurrent->arCallStack); |
|
@@ 2657-2664 (lines=8) @@ | ||
2654 | } |
|
2655 | restore_error_handler(); |
|
2656 | ||
2657 | if ( !$AR->contextCallHandler ) { /* prevent oncall from re-entering here */ |
|
2658 | $AR->contextCallHandler = true; |
|
2659 | $temp = $ARCurrent->arResult; /* event listeners will change ARCurrent->arResult */ |
|
2660 | $eventData->arResult = $arResult; |
|
2661 | ar_events::fire('oncall', $eventData ); |
|
2662 | $ARCurrent->arResult = $temp; /* restore correct result */ |
|
2663 | $AR->contextCallHandler = false; |
|
2664 | } |
|
2665 | } |
|
2666 | array_pop($ARCurrent->arCallStack); |
|
2667 | $this->popContext(); |