@@ 1952-1961 (lines=10) @@ | ||
1949 | } |
|
1950 | if ($continue) { |
|
1951 | $eventData = new object(); |
|
1952 | if ( !$AR->contextCallHandler ) { /* prevent onbeforecall from re-entering here */ |
|
1953 | $AR->contextCallHandler = true; |
|
1954 | $eventData->arCallArgs = $arCallArgs; |
|
1955 | $eventData->arCallFunction = $arCallFunction; |
|
1956 | $eventData->arContext = $this->getContext(); |
|
1957 | $eventData = ar_events::fire('onbeforecall', $eventData); |
|
1958 | $ARCurrent->arResult = $eventData->arResult; |
|
1959 | $AR->contextCallHandler = false; |
|
1960 | $continue = ($eventData!=false); |
|
1961 | } |
|
1962 | if ( $continue ) { |
|
1963 | if (!isset($ARCurrent->cacheCallChainSettings)) { |
|
1964 | $ARCurrent->cacheCallChainSettings = array(); |
|
@@ 2631-2640 (lines=10) @@ | ||
2628 | ); |
|
2629 | $continue = true; |
|
2630 | $eventData = new object(); |
|
2631 | if ( !$AR->contextCallHandler ) { /* prevent onbeforecall from re-entering here */ |
|
2632 | $AR->contextCallHandler = true; |
|
2633 | $eventData->arCallArgs = $arCallArgs; |
|
2634 | $eventData->arCallFunction = $arCallFunction; |
|
2635 | $eventData->arContext = $this->getContext(); |
|
2636 | $eventData = ar_events::fire('onbeforecall', $eventData); |
|
2637 | $ARCurrent->arResult = $eventData->arResult; |
|
2638 | $AR->contextCallHandler = false; |
|
2639 | $continue = ($eventData!=false); |
|
2640 | } |
|
2641 | if ( $continue ) { |
|
2642 | set_error_handler(array('pobject','pinpErrorHandler'),error_reporting()); |
|
2643 | $func = ar('template')->get($template['arCallTemplatePath'],$template['arCallTemplate']); |