|
@@ -842,11 +842,12 @@ class Zend_Controller_Action_Helper_ViewRenderer extends Zend_Controller_Action_
|
|
|
$request = $this->getRequest();
|
|
$request = $this->getRequest();
|
|
|
$dispatcher = $this->getFrontController()->getDispatcher();
|
|
$dispatcher = $this->getFrontController()->getDispatcher();
|
|
|
$module = $dispatcher->formatModuleName($request->getModuleName());
|
|
$module = $dispatcher->formatModuleName($request->getModuleName());
|
|
|
- $controller = substr(
|
|
|
|
|
- $dispatcher->formatControllerName($request->getControllerName()),
|
|
|
|
|
- 0,
|
|
|
|
|
- -10
|
|
|
|
|
|
|
+ $controller = $dispatcher->formatControllerName(
|
|
|
|
|
+ $request->getControllerName()
|
|
|
);
|
|
);
|
|
|
|
|
+ if ('Controller' == substr($controller, -10)) {
|
|
|
|
|
+ $controller = substr($controller, 0, -10);
|
|
|
|
|
+ }
|
|
|
$action = $dispatcher->formatActionName($request->getActionName());
|
|
$action = $dispatcher->formatActionName($request->getActionName());
|
|
|
|
|
|
|
|
$params = compact('module', 'controller', 'action');
|
|
$params = compact('module', 'controller', 'action');
|