Throw ApplicationException when AJAX handler not found

This commit is contained in:
Sam Georges 2014-08-13 07:52:14 +10:00
parent 7d4e535165
commit 37291a0c63
2 changed files with 2 additions and 2 deletions

View File

@ -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.

View File

@ -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