// 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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user