@@ 625-634 (lines=10) @@ | ||
622 | } |
|
623 | ||
624 | // get module name |
|
625 | if ($this->getModuleName()) { |
|
626 | $module = $this->getModuleName(); |
|
627 | } else { |
|
628 | if ( ! empty($p[0])) { |
|
629 | $module = $p[0]; |
|
630 | } else { |
|
631 | $module = $router->getFront()->getDefault('module'); |
|
632 | $this->setAlias(Mage_Core_Model_Url_Rewrite::REWRITE_REQUEST_PATH_ALIAS, ''); |
|
633 | } |
|
634 | } |
|
635 | if ( ! $module) { |
|
636 | if (Mage::app()->getStore()->isAdmin()) { |
|
637 | $module = 'admin'; |
|
@@ 660-672 (lines=13) @@ | ||
657 | $this->setRouteName($router->getRouteByFrontName($module)); |
|
658 | ||
659 | // get controller name |
|
660 | if ($this->getControllerName()) { |
|
661 | $controller = $this->getControllerName(); |
|
662 | } else { |
|
663 | if ( ! empty($p[1])) { |
|
664 | $controller = $p[1]; |
|
665 | } else { |
|
666 | $controller = $front->getDefault('controller'); |
|
667 | $this->setAlias( |
|
668 | Mage_Core_Model_Url_Rewrite::REWRITE_REQUEST_PATH_ALIAS, |
|
669 | ltrim($this->getOriginalPathInfo(), '/') |
|
670 | ); |
|
671 | } |
|
672 | } |
|
673 | ||
674 | // get action name |
|
675 | if (empty($action)) { |