From 2a4e5c0a4701ed99faa435ce3fa93f6aea6d8fbf Mon Sep 17 00:00:00 2001 From: Nicolas Domenech Date: Tue, 29 Aug 2023 12:44:38 +0200 Subject: [PATCH] #21 [IHM] add: use picto in tabmenu on phone --- lib/tinyurl.lib.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/tinyurl.lib.php b/lib/tinyurl.lib.php index 1d429bb..dea168f 100644 --- a/lib/tinyurl.lib.php +++ b/lib/tinyurl.lib.php @@ -29,7 +29,7 @@ function tinyurl_admin_prepare_head(): array { // Global variables definitions - global $langs, $conf; + global $conf, $langs; // Load translation files required by the page saturne_load_langs(); @@ -39,12 +39,12 @@ function tinyurl_admin_prepare_head(): array $head = []; $head[$h][0] = dol_buildpath('/tinyurl/admin/setup.php', 1); - $head[$h][1] = '' . $langs->trans('ModuleSettings'); + $head[$h][1] = $conf->browser->layout != 'phone' ? '' . $langs->trans('ModuleSettings') : ''; $head[$h][2] = 'settings'; $h++; $head[$h][0] = dol_buildpath('/saturne/admin/about.php', 1) . '?module_name=TinyURL'; - $head[$h][1] = '' . $langs->trans('About'); + $head[$h][1] = $conf->browser->layout != 'phone' ? '' . $langs->trans('About') : ''; $head[$h][2] = 'about'; $h++;