Fixed error page

This commit is contained in:
Stéphane Goetz 2015-07-19 14:04:29 +02:00
parent 7d63acbf61
commit 1f167db1f6
2 changed files with 3 additions and 2 deletions

View File

@ -34,6 +34,7 @@ class ErrorPage extends SimplePage
$page = [
'title' => $this->title,
'content' => $this->content,
'language' => '',
];
$template = new Template($params['templates'], $params['theme']['templates']);

View File

@ -22,8 +22,8 @@
<div id="sub-nav-collapse" class="sub-nav-collapse">
<!-- Navigation -->
<?php
if ($page['language'] !== '') echo $this->get_navigation($tree->value[$page['language']], $page['language'], $params['request'], $base_page, $params['mode']);
else echo $this->get_navigation($tree, '', $params['request'], $base_page, $params['mode']);
if ($page['language'] !== '') echo $this->get_navigation($tree->value[$page['language']], $page['language'], isset($params['request'])? $params['request'] : '', $base_page, $params['mode']);
else echo $this->get_navigation($tree, '', isset($params['request'])? $params['request'] : '', $base_page, $params['mode']);
?>
<?php if (!empty($params['links']) || !empty($params['twitter']) || $params['toggle_code']) { ?>