From 4edb2646d0e605184dbc33cf6682bfaa7e5b3d80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Chilliet?= <come@opensides.be> Date: Mon, 12 Sep 2016 10:20:50 +0200 Subject: [PATCH] Fixes #5145 dashboard was not using the correct tab class anymore --- include/simpleplugin/class_simplePlugin.inc | 2 +- plugins/addons/dashboard/class_dashBoard.inc | 1 + plugins/addons/dashboard/main.inc | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/include/simpleplugin/class_simplePlugin.inc b/include/simpleplugin/class_simplePlugin.inc index 5d740ed86..ee804fc1c 100644 --- a/include/simpleplugin/class_simplePlugin.inc +++ b/include/simpleplugin/class_simplePlugin.inc @@ -799,7 +799,7 @@ class simplePlugin extends plugin * * \param string $entry_dn the dn of the object to show/edit * - * \param string $tabs TRUE to use tabs, FALSE to show directly the plugin class + * \param boolean $tabs TRUE to use tabs, FALSE to show directly the plugin class * * \param boolean $edit_mode wether or not this plugin can be edited * diff --git a/plugins/addons/dashboard/class_dashBoard.inc b/plugins/addons/dashboard/class_dashBoard.inc index 2aa0e7300..21a24d48e 100644 --- a/plugins/addons/dashboard/class_dashBoard.inc +++ b/plugins/addons/dashboard/class_dashBoard.inc @@ -31,6 +31,7 @@ class dashboard extends simplePlugin 'plObjectType' => array( 'dashboard' => array( 'name' => _('Dashboard'), + 'tabClass' => 'tabs_dashboard', 'mainAttr' => FALSE ) ), diff --git a/plugins/addons/dashboard/main.inc b/plugins/addons/dashboard/main.inc index c23d5cc1e..67bc57735 100644 --- a/plugins/addons/dashboard/main.inc +++ b/plugins/addons/dashboard/main.inc @@ -18,5 +18,5 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */ -simplePlugin::mainInc('dashboard', '', 'tabs_dashboard', FALSE); +simplePlugin::mainInc('dashboard', '', TRUE, FALSE); ?> -- GitLab