diff --git a/html/themes/breezy/icons/48/apps/pluginManager.png b/html/themes/breezy/icons/48/apps/pluginManager.png new file mode 100644 index 0000000000000000000000000000000000000000..aac43b2c33b7b7c85adb5db13601ff26c5434b9b Binary files /dev/null and b/html/themes/breezy/icons/48/apps/pluginManager.png differ diff --git a/plugins/dashboard/pluginmanager/class_pluginsManager.inc b/plugins/dashboard/pluginmanager/class_pluginsManager.inc index c9c6daaed8e904ac8a211bb26af9cfe0e1e6c8b7..c107f7017f131b47ea56b56d976d4d094a92d9bf 100644 --- a/plugins/dashboard/pluginmanager/class_pluginsManager.inc +++ b/plugins/dashboard/pluginmanager/class_pluginsManager.inc @@ -16,7 +16,7 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. -*/ + */ class pluginsManager extends simplePlugin { @@ -24,13 +24,20 @@ class pluginsManager extends simplePlugin { return [ 'plShortName' => _('Plugins'), - 'plObjectType' => ['tasks'], + 'plObjectType' => [ + 'pluginManager' => [ + 'name' => _('PluginManager'), + 'mainAttr' => FALSE + ] + ], 'plTitle' => _('Plugins Manager'), - 'plIcon' => 'geticon.php?context=applications&icon=tasks-dashboard&size=48', + 'plIcon' => 'geticon.php?context=applications&icon=pluginManager&size=48', 'plSection' => ['Dashboard' => ['name' => _('Dashboard'), 'priority' => 30]], 'plPriority' => 10, 'plDescription' => _('Provide a reporting mechanism of installed plugins'), - 'plProvidedAcls' => [] + 'plProvidedAcls' => [ + 'pluginManager' => _('See pluginManager') + ] ]; } @@ -86,4 +93,20 @@ class pluginsManager extends simplePlugin return $div->drawList(); } + + static function mainInc ($classname = NULL, $entry_dn = NULL, $tabs = FALSE, $edit_mode = FALSE, $objectType = FALSE) + { + global $config; + + if ($classname === NULL) { + $classname = get_called_class(); + } + + if ($entry_dn === NULL) { + $entry_dn = $config->current['BASE']; + } + + parent::mainInc($classname, $entry_dn, $tabs, $edit_mode, $objectType); + } + }