mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 12:48:24 +01:00
Fix for broken 'Pages' book and chapter urls without SEF active.
This commit is contained in:
parent
0976668360
commit
403900c357
@ -42,11 +42,17 @@ class core_page_url extends eUrlConfig
|
||||
$route = explode('/', $route, 2);
|
||||
|
||||
}
|
||||
|
||||
|
||||
if(!varset($route[1])) $route[1] = 'index';
|
||||
|
||||
$url = 'page.php?';
|
||||
|
||||
if(isset($params['chapter_id']) && !empty($params['chapter_id']))
|
||||
{
|
||||
$params['id'] = $params['chapter_id'];
|
||||
}
|
||||
|
||||
switch ($route[0])
|
||||
{
|
||||
case 'book':
|
||||
|
Loading…
x
Reference in New Issue
Block a user