From 5cc54e182e2143b78ceee497decb8d4799b51127 Mon Sep 17 00:00:00 2001 From: Alexander Demidov Date: Mon, 12 Nov 2012 19:30:25 +0400 Subject: [PATCH] Modify FronController with use class_name in is_subclass_of. --- app/FrontController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/FrontController.php b/app/FrontController.php index 2de211b..bd5f13d 100644 --- a/app/FrontController.php +++ b/app/FrontController.php @@ -143,7 +143,7 @@ class FrontController $layout = new $layout_class(); $layout->setException($e); $error_action = new ErrorAction($e); - if (isset($action) && is_subclass_of($action, 'AjaxAction')) { + if (isset($action_class) && is_subclass_of($action_class, 'AjaxAction')) { $error_action->setAjaxError(); } return $layout->fetch($error_action);