// Fix dispatcher when no empty rewrite meta is found with friendly url
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