Commit f29d7986 authored by Leigh B. Stoller's avatar Leigh B. Stoller

Fix bug that was causing "new" icon to not be displayed in drop downs

menus.
parent b3210aa7
<?php
a<?php
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2007 University of Utah and the Flux Group.
......@@ -136,7 +136,8 @@ function NavMenuButtonNew($text, $link = null, $divider = FALSE)
global $navmenu, $login_user;
if ($login_user)
NavMenuButton($text, $link, "&nbsp;<img src=\"/new.gif\">", $divider);
NavMenuButton($text, $link, "&nbsp;<img src=\"/new.gif\">",
null, $divider);
else
WRITESIDEBARBUTTON($text, $link, "&nbsp;<img src=\"/new.gif\" />");
}
......@@ -1491,15 +1492,16 @@ class menuBar
echo "<ul>\n";
foreach ($menu['#links'] as $h => $item) {
$link = $item['#link'];
$text = $item['#text'];
$div = "";
$link = $item['#link'];
$text = $item['#text'];
$extra = $item['#extratext'];
$div = "";
# The divider comes before the item.
if ($item['#divider'])
$div = "class=divider";
echo "<li $div><a href=\"$link\">$text</a></li>\n";
echo "<li $div><a href=\"$link\">$text $extra</a></li>\n";
}
echo "</ul>";
# echo "</td></tr></table></a>";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment