Remove useless href=# on menu items

pull/6485/head
Aleksander Machniak 6 years ago
parent 0551b0f9c4
commit 0fa9ad11d6

@ -1590,12 +1590,14 @@ EOF;
}
// overwrite attributes
if (!$attrib['href']) {
if (!$attrib['href'] && !$menuitem) {
$attrib['href'] = '#';
}
if ($attrib['task']) {
if ($attrib['classact'])
if ($attrib['classact']) {
$attrib['class'] = $attrib['classact'];
}
}
else if ($command && !$attrib['onclick']) {
$attrib['onclick'] = sprintf(

Loading…
Cancel
Save