@@ 1960-1969 (lines=10) @@ | ||
1957 | } |
|
1958 | if ($continue) { |
|
1959 | $eventData = new baseObject(); |
|
1960 | if ( !$AR->contextCallHandler ) { /* prevent onbeforecall from re-entering here */ |
|
1961 | $AR->contextCallHandler = true; |
|
1962 | $eventData->arCallArgs = $arCallArgs; |
|
1963 | $eventData->arCallFunction = $arCallFunction; |
|
1964 | $eventData->arContext = $this->getContext(); |
|
1965 | $eventData = ar_events::fire('onbeforecall', $eventData); |
|
1966 | $ARCurrent->arResult = $eventData->arResult; |
|
1967 | $AR->contextCallHandler = false; |
|
1968 | $continue = ($eventData!=false); |
|
1969 | } |
|
1970 | if ( $continue ) { |
|
1971 | if (!isset($ARCurrent->cacheCallChainSettings)) { |
|
1972 | $ARCurrent->cacheCallChainSettings = array(); |
|
@@ 2639-2648 (lines=10) @@ | ||
2636 | ); |
|
2637 | $continue = true; |
|
2638 | $eventData = new baseObject(); |
|
2639 | if ( !$AR->contextCallHandler ) { /* prevent onbeforecall from re-entering here */ |
|
2640 | $AR->contextCallHandler = true; |
|
2641 | $eventData->arCallArgs = $arCallArgs; |
|
2642 | $eventData->arCallFunction = $arCallFunction; |
|
2643 | $eventData->arContext = $this->getContext(); |
|
2644 | $eventData = ar_events::fire('onbeforecall', $eventData); |
|
2645 | $ARCurrent->arResult = $eventData->arResult; |
|
2646 | $AR->contextCallHandler = false; |
|
2647 | $continue = ($eventData!=false); |
|
2648 | } |
|
2649 | if ( $continue ) { |
|
2650 | set_error_handler(array('pobject','pinpErrorHandler'),error_reporting()); |
|
2651 | $func = ar('template')->get($template['arCallTemplatePath'],$template['arCallTemplate']); |