8
0

Fixed error page

Dieser Commit ist enthalten in:
Stéphane Goetz 2015-07-19 14:04:29 +02:00
Ursprung 7d63acbf61
Commit 1f167db1f6
2 geänderte Dateien mit 3 neuen und 2 gelöschten Zeilen

Datei anzeigen

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

Datei anzeigen

@ -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']) { ?>