fixed ErrorAction::setAjaxError() method call in FrontController

This commit is contained in:
Anton Grebnev
2012-11-12 13:52:11 +04:00
committed by Anton Terekhov
parent e1c3da8019
commit 008eee4c8c

View File

@ -144,7 +144,7 @@ class FrontController
$layout->setException($e);
$error_action = new ErrorAction($e);
if (isset($action) && is_subclass_of($action, 'AjaxAction')) {
$error_action->setAjax();
$error_action->setAjaxError();
}
return $layout->fetch($error_action);
}