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

🚜 feat(dashboard) Get rid of dashboard main.inc

Also renamed files to match classes names

issue #5951
parent de38f0f9
......@@ -115,5 +115,17 @@ class dashboard extends simplePlugin
return $stats;
}
static function mainInc($classname = NULL, $entry_dn = NULL, $tabs = TRUE, $edit_mode = FALSE, $objectType = FALSE)
{
if ($classname === NULL) {
$classname = get_called_class();
}
if ($entry_dn === NULL) {
$entry_dn = '';
}
parent::mainInc($classname, $entry_dn, $tabs, $edit_mode, $objectType);
}
}
?>
<?php
/*
This code is part of FusionDirectory (http://www.fusiondirectory.org)
Copyright (C) 2013-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
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
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('dashboard', '', TRUE, FALSE);
?>
  • SonarQube analysis reported 2 issues

    • 2 major

    Note: The following issues were found on lines that were not modified in the commit. Because these issues can't be reported as line comments, they are summarized here:

    1. This branch's code block is the same as the block for the branch on line 264. 📘
    2. This branch's code block is the same as the block for the branch on line 266. 📘
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