Fixed 404 pages

This commit is contained in:
Marcin Kurczewski 2013-12-16 23:38:31 +01:00
parent 95961fe7d5
commit 8c0c5269c4

View file

@ -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)
{