1
0
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:
Cameron
2014-01-06 05:00:39 -08:00
parent 0976668360
commit 403900c357

View File

@@ -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':