Fixed error page
This commit is contained in:
parent
7d63acbf61
commit
1f167db1f6
@ -34,6 +34,7 @@ class ErrorPage extends SimplePage
|
|||||||
$page = [
|
$page = [
|
||||||
'title' => $this->title,
|
'title' => $this->title,
|
||||||
'content' => $this->content,
|
'content' => $this->content,
|
||||||
|
'language' => '',
|
||||||
];
|
];
|
||||||
|
|
||||||
$template = new Template($params['templates'], $params['theme']['templates']);
|
$template = new Template($params['templates'], $params['theme']['templates']);
|
||||||
|
@ -22,8 +22,8 @@
|
|||||||
<div id="sub-nav-collapse" class="sub-nav-collapse">
|
<div id="sub-nav-collapse" class="sub-nav-collapse">
|
||||||
<!-- Navigation -->
|
<!-- Navigation -->
|
||||||
<?php
|
<?php
|
||||||
if ($page['language'] !== '') echo $this->get_navigation($tree->value[$page['language']], $page['language'], $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, '', $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']) { ?>
|
<?php if (!empty($params['links']) || !empty($params['twitter']) || $params['toggle_code']) { ?>
|
||||||
|
Loading…
Reference in New Issue
Block a user