Fixed double inclusion bug

This commit is contained in:
Marcin Kurczewski 2013-10-07 20:31:45 +02:00
parent 4aa41653be
commit c69ff872a9

View file

@ -45,6 +45,8 @@
$postNav []= ['Log out', \Chibi\UrlHelper::route('auth', 'logout')]; $postNav []= ['Log out', \Chibi\UrlHelper::route('auth', 'logout')];
} }
if (!function_exists('printNav'))
{
function printNav($nav) function printNav($nav)
{ {
foreach ($nav as $navItem) foreach ($nav as $navItem)
@ -55,6 +57,7 @@
echo '</li>'; echo '</li>';
} }
} }
}
?> ?>
<?php printNav($preNav); ?> <?php printNav($preNav); ?>