Throw ApplicationException when AJAX handler not found
This commit is contained in:
parent
7d4e535165
commit
37291a0c63
|
|
@ -325,7 +325,7 @@ class Controller extends Extendable
|
|||
* Execute the handler
|
||||
*/
|
||||
if (!$result = $this->runAjaxHandler($handler))
|
||||
throw new SystemException(Lang::get('cms::lang.ajax_handler.not_found', ['name'=>$handler]));
|
||||
throw new ApplicationException(Lang::get('cms::lang.ajax_handler.not_found', ['name'=>$handler]));
|
||||
|
||||
/*
|
||||
* If the handler returned an array, we should add it to output for rendering.
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@ abstract class ComponentBase extends Extendable
|
|||
/**
|
||||
* @var array Cache of linked Component objects, used for page links.
|
||||
*/
|
||||
protected $pageLinkCache = [];
|
||||
// protected $pageLinkCache = [];
|
||||
|
||||
/**
|
||||
* Component constructor. Takes in the page or layout code section object
|
||||
|
|
|
|||
Loading…
Reference in New Issue