mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 02:58:43 +02:00
Pass the final class to GetShortcutActions
SVN:trunk[1498]
This commit is contained in:
@@ -1228,9 +1228,8 @@ class MenuBlock extends DisplayBlock
|
||||
}
|
||||
}
|
||||
$aFavoriteActions = array();
|
||||
$aFavorites = array('UI:Menu:Modify', 'UI:Menu:New', /*'UI:Menu:Delete'*/);
|
||||
$aCallSpec = array($sClass, 'GetShortcutActions');
|
||||
$aShortcutActions = call_user_func($aCallSpec);
|
||||
$aShortcutActions = call_user_func($aCallSpec, $sClass);
|
||||
foreach ($aActions as $key => $aAction)
|
||||
{
|
||||
if (in_array($key, $aShortcutActions))
|
||||
|
||||
Reference in New Issue
Block a user