From b8fafe1f2b705272b9e3853a8a791200fb718fa6 Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Mon, 6 Apr 2020 10:34:48 +0200 Subject: [PATCH] Output_Tab : set mode to row by default + cosmetic --- include/lib/output_html_tab.class.php | 11 ++++++++++- include/upgrade-plugin.php | 5 ++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/include/lib/output_html_tab.class.php b/include/lib/output_html_tab.class.php index c8af50d90..56544f257 100644 --- a/include/lib/output_html_tab.class.php +++ b/include/lib/output_html_tab.class.php @@ -48,6 +48,7 @@ class Output_Html_Tab $this->a_tabs=[]; $this->class_tab="tabs"; $this->class_tab_selected="tabs_selected"; + $this->set_mode("tab"); } /** @@ -232,6 +233,7 @@ class Output_Html_Tab break; default: + throw new Exception('OUTPUTHTMLTAB01'); break; } if ( $this->get_mode()=="row") { @@ -253,7 +255,14 @@ class Output_Html_Tab } private function print_div($p_index) { - printf('