mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 05:07:27 +02:00
Function fixes for e_navigation. (also corrects issue in admin_menu.php )
This commit is contained in:
@@ -854,7 +854,7 @@ class e_navigation
|
|||||||
*/
|
*/
|
||||||
ksort($plugin_array, SORT_STRING); // To FIX, without changing the current key format, sort by 'title'
|
ksort($plugin_array, SORT_STRING); // To FIX, without changing the current key format, sort by 'title'
|
||||||
|
|
||||||
if($linkStyle == "array")
|
if($linkStyle == "array" || $iconSize == 'assoc')
|
||||||
{
|
{
|
||||||
return $plugin_array;
|
return $plugin_array;
|
||||||
}
|
}
|
||||||
@@ -862,7 +862,7 @@ class e_navigation
|
|||||||
foreach ($plugin_array as $plug_key => $plug_value)
|
foreach ($plugin_array as $plug_key => $plug_value)
|
||||||
{
|
{
|
||||||
$the_icon = ($iconSize == E_16_PLUGMANAGER) ? $plug_value['icon'] : $plug_value['icon_32'];
|
$the_icon = ($iconSize == E_16_PLUGMANAGER) ? $plug_value['icon'] : $plug_value['icon_32'];
|
||||||
$text .= render_links($plug_value['link'], $plug_value['title'], $plug_value['caption'], $plug_value['perms'], $the_icon, $linkStyle);
|
$text .= $this->renderAdminButton($plug_value['link'], $plug_value['title'], $plug_value['caption'], $plug_value['perms'], $the_icon, $linkStyle);
|
||||||
}
|
}
|
||||||
return $text;
|
return $text;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user