From 0aa6d4f2371b4813d528d4d8a1bd06b91f3c37fa Mon Sep 17 00:00:00 2001 From: "Laurent Destailleur (aka Eldy)" Date: Thu, 13 Feb 2025 14:21:31 +0100 Subject: [PATCH] NEW The public media browser is stable --- htdocs/core/lib/ecm.lib.php | 4 ++-- htdocs/ecm/index.php | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/htdocs/core/lib/ecm.lib.php b/htdocs/core/lib/ecm.lib.php index 20f8b91125f..91fedab9dcb 100644 --- a/htdocs/core/lib/ecm.lib.php +++ b/htdocs/core/lib/ecm.lib.php @@ -32,7 +32,7 @@ */ function ecm_prepare_dasboard_head() { - global $langs, $conf, $user, $form; + global $langs, $conf, $form; $h = 0; $head = array(); @@ -61,7 +61,7 @@ function ecm_prepare_dasboard_head() $h++; } - if ($showmediasection && getDolGlobalInt('MAIN_FEATURES_LEVEL') >= 2) { + if ($showmediasection) { $head[$h][0] = DOL_URL_ROOT.'/ecm/index_medias.php?file_manager=1'; $head[$h][1] = $langs->trans("ECMSectionsMedias").$form->textwithpicto('', $helptext, 1, 'info', '', 0, 3); $head[$h][2] = 'index_medias'; diff --git a/htdocs/ecm/index.php b/htdocs/ecm/index.php index 213d60c4a17..a9497de7acc 100644 --- a/htdocs/ecm/index.php +++ b/htdocs/ecm/index.php @@ -345,6 +345,7 @@ $moreheadjs .= ''."\n"; llxHeader($moreheadcss.$moreheadjs, $langs->trans("ECMArea"), '', '', 0, 0, $morejs, '', '', 'mod-ecm page-index'); $head = ecm_prepare_dasboard_head(); + print dol_get_fiche_head($head, 'index', '', -1, '');