Commit de38f0f9 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

feat(config) Get rid of config as well

issue #5951
parent 2ad703ac
......@@ -600,5 +600,20 @@ class configInLdap extends simplePlugin
return array_unique($themes);
static function mainInc($classname = NULL, $entry_dn = NULL, $tabs = TRUE, $edit_mode = TRUE, $objectType = FALSE)
global $config;
if ($classname === NULL) {
$classname = get_called_class();
if ($entry_dn === NULL) {
$entry_dn = CONFIGRDN.$config->current['BASE'];
parent::mainInc($classname, $entry_dn, $tabs, $edit_mode, $objectType);
This code is part of FusionDirectory (
Copyright (C) 2012-2016 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
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
GNU General Public License for more details.
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.
simplePlugin::mainInc('configInLdap', CONFIGRDN.$config->current['BASE'], TRUE);
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