Procházet zdrojové kódy

ZF-3726, ZF-10681, Applying patches from Jurian

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@23361 44c647ce-9c0f-0410-b52a-842ac1e357ba
bittarman před 15 roky
rodič
revize
127d83dd59
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      library/Zend/Controller/Router/Rewrite.php

+ 2 - 2
library/Zend/Controller/Router/Rewrite.php

@@ -95,7 +95,7 @@ class Zend_Controller_Router_Rewrite extends Zend_Controller_Router_Abstract
             require_once 'Zend/Controller/Router/Route/Module.php';
             $compat = new Zend_Controller_Router_Route_Module(array(), $dispatcher, $request);
 
-            $this->_routes = array_merge(array('default' => $compat), $this->_routes);
+            $this->_routes = array('default' => $compat) + $this->_routes;
         }
 
         return $this;
@@ -382,7 +382,7 @@ class Zend_Controller_Router_Rewrite extends Zend_Controller_Router_Abstract
         // Find the matching route
         $routeMatched = false;
         
-        foreach (array_reverse($this->_routes) as $name => $route) {
+        foreach (array_reverse($this->_routes, true) as $name => $route) {
             // TODO: Should be an interface method. Hack for 1.0 BC
             if (method_exists($route, 'isAbstract') && $route->isAbstract()) {
                 continue;