1
0
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:
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);
}
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':