// Fix dispatcher when no empty rewrite meta is found with friendly url

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15409 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rMalie
2012-05-19 09:25:07 +00:00
parent 04f4e669d9
commit 3ca67d4ebd
+9 -1
View File
@@ -389,11 +389,19 @@ class DispatcherCore
else
$this->empty_route = array(
'routeID' => $row['page'],
'rule' => $row['url_rewrite'],
'rule' => '',
'controller' => $row['page'],
);
}
// Set default empty route if no empty route (that's weird I know)
if (!$this->empty_route)
$this->empty_route = array(
'routeID' => 'index',
'rule' => '',
'controller' => 'index',
);
// Load custom routes
foreach ($this->default_routes as $route_id => $route_data)
if ($custom_route = Configuration::get('PS_ROUTE_'.$route_id))