Commit 3805e691 authored by dockx thibault's avatar dockx thibault
Browse files

Merge branch...

Merge branch '6283-pluginmanager-objecttype-is-of-tasks-and-should-be-changed-to-its-own-type' into '1.4-dev'

Resolve "[PluginManager] objectType is of tasks and should be changed to its own type"

Closes #6283

See merge request fusiondirectory/fd!1048
Showing with 27 additions and 4 deletions
+27 -4
html/themes/breezy/icons/48/apps/pluginManager.png

1.27 KB

......@@ -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);
}
}
Supports Markdown
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