Fix permissions-related bug in menu appearance

This commit is contained in:
Fedor A. Fetisov 2013-12-22 03:17:14 +04:00
parent f29be662a6
commit f9fd80423f

View File

@ -59,7 +59,7 @@ function tpl_menu() { global $page, $mibewroot, $errors;
<li<?php menuli("translate")?>><a href="<?php echo $mibewroot ?>/operator/translate.php"><?php echo getlocal('menu.translate') ?></a></li>
<li<?php menuli("updates")?>><a href="<?php echo $mibewroot ?>/operator/updates.php"><?php echo getlocal('menu.updates') ?></a></li>
<?php } ?>
<?php if(isset($page['shownotifications']) && $page['shownotifications']) { ?>
<?php if(isset($page['showadmin']) && $page['showadmin'] || isset($page['shownotifications']) && $page['shownotifications']) { ?>
<li<?php menuli("notifications")?>><a href="<?php echo $mibewroot ?>/operator/notifications.php"><?php echo getlocal('menu.notifications') ?></a></li>
<?php } ?>
<?php if(isset($page['currentopid']) && $page['currentopid']) {?>