diff options
author | msquare <msquare@notrademark.de> | 2016-08-21 18:00:24 +0200 |
---|---|---|
committer | msquare <msquare@notrademark.de> | 2016-08-21 18:00:39 +0200 |
commit | 53ad1b5110e22bdbb57960aec7d29b824dda7b5b (patch) | |
tree | 5a33544142ecf13e5902ff196d8b8470b5120945 /includes/sys_menu.php | |
parent | 29cbd4a9dde440605c5f34d50961fa5208411293 (diff) |
fix codacy unused code
Diffstat (limited to 'includes/sys_menu.php')
-rw-r--r-- | includes/sys_menu.php | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/includes/sys_menu.php b/includes/sys_menu.php index cf5b76fc..96522fa7 100644 --- a/includes/sys_menu.php +++ b/includes/sys_menu.php @@ -139,19 +139,6 @@ function make_navigation() { return toolbar($menu); } -function make_navigation_for($name, $pages) { - global $privileges, $p; - - $menu = ""; - foreach ($pages as $page) - if (in_array($page, $privileges)) - $menu .= '<li' . ($page == $p ? ' class="selected"' : '') . '><a href="' . page_link_to($page) . '">' . $title . '</a></li>'; - - if ($menu != "") - $menu = '<nav class="container"><h4>' . $name . '</h4><ul class="content">' . $menu . '</ul></nav>'; - return $menu; -} - function make_menu() { return make_navigation(); } |