diff options
author | Philip Häusler <msquare@notrademark.de> | 2013-12-03 16:28:37 +0100 |
---|---|---|
committer | Philip Häusler <msquare@notrademark.de> | 2013-12-03 16:28:37 +0100 |
commit | 821e37c1b25afe9cae118c8ce185878ae8726dab (patch) | |
tree | 865508bcf829db5d943b931835113e1eedb6cfec /includes/sys_menu.php | |
parent | f79f711e16897c3db2bf9e315f5094124af6d55f (diff) |
removed faq feature
Diffstat (limited to 'includes/sys_menu.php')
-rw-r--r-- | includes/sys_menu.php | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/includes/sys_menu.php b/includes/sys_menu.php index e65f1d36..d4620753 100644 --- a/includes/sys_menu.php +++ b/includes/sys_menu.php @@ -39,10 +39,6 @@ function make_navigation() { global $privileges; $menu = ""; - $specials = array( - "faq" - ); - $pages = array( "news" => news_title(), "user_meetings" => meetings_title(), @@ -61,13 +57,12 @@ function make_navigation() { "admin_shifts" => admin_shifts_title(), "admin_rooms" => admin_rooms_title(), "admin_groups" => admin_groups_title(), - "admin_faq" => admin_faq_title(), "admin_import" => admin_import_title(), "admin_log" => admin_log_title() ); foreach ($pages as $page => $title) - if (in_array($page, $privileges) || in_array($page, $specials)) + if (in_array($page, $privileges)) $menu .= '<li' . ($page == $p ? ' class="selected"' : '') . '><a href="' . page_link_to($page) . '">' . $title . '</a></li>'; return '<nav><ul>' . $menu . '</ul></nav>'; @@ -75,14 +70,10 @@ function make_navigation() { function make_navigation_for($name, $pages) { global $privileges, $p; - - $specials = array( - "faq" - ); - + $menu = ""; foreach ($pages as $page) - if (in_array($page, $privileges) || in_array($page, $specials)) + if (in_array($page, $privileges)) $menu .= '<li' . ($page == $p ? ' class="selected"' : '') . '><a href="' . page_link_to($page) . '">' . $title . '</a></li>'; if ($menu != "") |