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

This commit is contained in:
rMalie
2012-05-19 09:25:07 +00:00
parent 25f270acf1
commit 2313f6b057
+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))