Use the right entry page

This commit is contained in:
Stéphane Goetz 2015-06-30 15:50:42 +02:00 committed by Stéphane Goetz
parent b5dd82fe2a
commit e3c9ce98b8

View File

@ -31,7 +31,7 @@ class Generator
$params['theme'] = DauxHelper::getTheme($params, $base_url); $params['theme'] = DauxHelper::getTheme($params, $base_url);
$params['image'] = str_replace('<base_url>', $base_url, $params['image']); $params['image'] = str_replace('<base_url>', $base_url, $params['image']);
if ($base_url !== '') { if ($base_url !== '' && empty($params['entry_page'])) {
$params['entry_page'] = $tree->getFirstPage(); $params['entry_page'] = $tree->getFirstPage();
} }
foreach ($tree->value as $key => $node) { foreach ($tree->value as $key => $node) {