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