import v2.0.0.0_RC3 | 2012-07-01
https://github.com/lucanos/CommunityID -> http://www.itadmins.net/archives/357
This commit is contained in:
@ -16,7 +16,7 @@
|
||||
* @package Zend_Controller
|
||||
* @subpackage Router
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @version $Id: Module.php 16541 2009-07-07 06:59:03Z bkarwin $
|
||||
* @version $Id: Module.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
|
||||
@ -80,11 +80,11 @@ class Zend_Controller_Router_Route_Module extends Zend_Controller_Router_Route_A
|
||||
public static function getInstance(Zend_Config $config)
|
||||
{
|
||||
$frontController = Zend_Controller_Front::getInstance();
|
||||
|
||||
|
||||
$defs = ($config->defaults instanceof Zend_Config) ? $config->defaults->toArray() : array();
|
||||
$dispatcher = $frontController->getDispatcher();
|
||||
$request = $frontController->getRequest();
|
||||
|
||||
|
||||
return new self($defs, $dispatcher, $request);
|
||||
}
|
||||
|
||||
@ -151,7 +151,7 @@ class Zend_Controller_Router_Route_Module extends Zend_Controller_Router_Route_A
|
||||
|
||||
$values = array();
|
||||
$params = array();
|
||||
|
||||
|
||||
if (!$partial) {
|
||||
$path = trim($path, self::URI_DELIMITER);
|
||||
} else {
|
||||
@ -182,7 +182,7 @@ class Zend_Controller_Router_Route_Module extends Zend_Controller_Router_Route_A
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if ($partial) {
|
||||
$this->setMatchedPath($matchedPath);
|
||||
}
|
||||
@ -233,9 +233,10 @@ class Zend_Controller_Router_Route_Module extends Zend_Controller_Router_Route_A
|
||||
unset($params[$this->_actionKey]);
|
||||
|
||||
foreach ($params as $key => $value) {
|
||||
$key = ($encode) ? urlencode($key) : $key;
|
||||
if (is_array($value)) {
|
||||
foreach ($value as $arrayValue) {
|
||||
if ($encode) $arrayValue = urlencode($arrayValue);
|
||||
$arrayValue = ($encode) ? urlencode($arrayValue) : $arrayValue;
|
||||
$url .= '/' . $key;
|
||||
$url .= '/' . $arrayValue;
|
||||
}
|
||||
|
Reference in New Issue
Block a user