From dbf4c64b984a62d5d18bab0fca96a6f94f772d3f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Thu, 20 Dec 2012 21:41:20 +0000 Subject: [PATCH] Global fix for generating right class name for controller resolver (to make that code part more generic and later move out to 'core' project as a new class/method) --- application/admin/class_ApplicationHelper.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/admin/class_ApplicationHelper.php b/application/admin/class_ApplicationHelper.php index b949d7e..b20f493 100644 --- a/application/admin/class_ApplicationHelper.php +++ b/application/admin/class_ApplicationHelper.php @@ -211,8 +211,8 @@ class ApplicationHelper extends BaseApplication implements ManageableApplication $requestInstance->setRequestElement('page', $commandName); } // END - if - // Get a resolver - $resolverClass = sprintf("%sControllerResolver", $this->convertToClassName($responseType)); + // Get a controller resolver + $resolverClass = $this->convertToClassName($this->getAppShortName() . '_' . $responseType . '_controller_resolver'); $resolverInstance = ObjectFactory::createObjectByName($resolverClass, array($commandName, $this)); // Get a controller instance as well -- 2.39.2