Fixed 404 pages
This commit is contained in:
parent
95961fe7d5
commit
8c0c5269c4
1 changed files with 10 additions and 2 deletions
|
@ -2,8 +2,16 @@
|
|||
<?php
|
||||
$nav = [];
|
||||
|
||||
$activeController = $this->context->route->simpleControllerName;
|
||||
$activeAction = $this->context->route->simpleActionName;
|
||||
if ($this->context->route)
|
||||
{
|
||||
$activeController = $this->context->route->simpleControllerName;
|
||||
$activeAction = $this->context->route->simpleActionName;
|
||||
}
|
||||
else
|
||||
{
|
||||
$activeController = null;
|
||||
$activeAction = null;
|
||||
}
|
||||
|
||||
$registerNavItem = function ($text, $link, $active = false) use (&$nav)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue