Commit 097b79f9 authored by Côme Bernigaud's avatar Côme Bernigaud Committed by Benoit Mortier
Browse files

Fixes #3914 Removing uses of class tabs

Showing with 12 additions and 11 deletions
+12 -11
......@@ -19,19 +19,15 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
*/
class tabs_dashboard extends tabs
class tabs_dashboard extends simpleTabs_noSpecial
{
function __construct($config, $data, $dn = NULL, $category = 'dashboard', $copied_object = NULL)
function __construct($type, $dn, $copied_object = NULL)
{
foreach ($data as $key => $infos) {
if (($infos['CLASS'] == 'dashboardNetwork') &&
!(class_available('dhcpService') || class_available('serviceDNS'))) {
unset($data[$key]);
}
parent::__construct($type, $dn, $copied_object);
if (!class_available('dhcpService') && !class_available('serviceDNS')) {
unset($this->by_object['dashboardNetwork']);
unset($this->by_name['dashboardNetwork']);
}
$data = array_values($data);
parent::__construct($config, $data, $dn, $category);
}
function save()
......
......@@ -456,6 +456,11 @@ class configInLdap extends simplePlugin
);
}
function compute_dn()
{
return $this->dn;
}
static function get_themes()
{
$themesdir = '../ihtml/themes/';
......
......@@ -18,7 +18,7 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
*/
class tabs_configInLdap extends tabs
class tabs_configInLdap extends simpleTabs_noSpecial
{
function save ()
{
......
  • bmortier @bmortier

    mentioned in issue #1300

    By Côme Chilliet on 2017-09-02T15:21:25 (imported from GitLab)

    ·

    mentioned in issue #1300

    By Côme Chilliet on 2017-09-02T15:21:25 (imported from GitLab)

    Toggle commit list
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