NEW The public media browser is stable

This commit is contained in:
Laurent Destailleur (aka Eldy) 2025-02-13 14:21:31 +01:00
parent ab8a8b9707
commit 22248f48b0
2 changed files with 3 additions and 2 deletions

View file

@ -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';

View file

@ -343,6 +343,7 @@ $moreheadjs .= '</script>'."\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, '');