Verified Commit 72fdebf5 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

🚑 fix(supann-ext) Fix obsolete code to respect new way of declaring objectClasses in 1.4

issue #6048
parent fd940256
<?php
/*
This code is part of FusionDirectory (http://www.fusiondirectory.org/)
Copyright (C) 2017-2018 FusionDirectory
Copyright (C) 2017-2020 FusionDirectory
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......@@ -20,23 +21,18 @@
class supannStructureExt extends simplePlugin
{
var $objectclasses = ['fdSupannExt'];
var $mainTab = TRUE;
/* Return plugin information */
static function plInfo (): array
{
return [
'plShortName' => _('SUPANN-Ext'),
'plDescription' => _('SUPANN Non-Official Extension'),
'plObjectType' => ['entite', 'etablissement'],
'plObjectClass' => ['fdSupannExt'],
'plProvidedAcls' => parent::generatePlProvidedAcls(static::getAttributesInfo())
];
}
// The main function : information about attributes
static function getAttributesInfo (): array
{
return [
......
Markdown is supported
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