// Fix dispatcher when no empty rewrite meta is found with friendly url
This commit is contained in:
1 parent
25f270acf1
commit
2313f6b057
1 file changed
+9
-1
@@ -389,11 +389,19 @@ class DispatcherCore
|
|||||||
else
|
else
|
||||||
$this->empty_route = array(
|
$this->empty_route = array(
|
||||||
'routeID' => $row['page'],
|
'routeID' => $row['page'],
|
||||||
'rule' => $row['url_rewrite'],
|
'rule' => '',
|
||||||
'controller' => $row['page'],
|
'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
|
// Load custom routes
|
||||||
foreach ($this->default_routes as $route_id => $route_data)
|
foreach ($this->default_routes as $route_id => $route_data)
|
||||||
if ($custom_route = Configuration::get('PS_ROUTE_'.$route_id))
|
if ($custom_route = Configuration::get('PS_ROUTE_'.$route_id))
|
||||||
|
|||||||
Reference in new issue
Block a user