diff --git a/htdocs/admin/modules.php b/htdocs/admin/modules.php index 9171d9ffda7..9a0d8a459a2 100644 --- a/htdocs/admin/modules.php +++ b/htdocs/admin/modules.php @@ -993,10 +993,10 @@ if ($mode == 'deploy') { if ($dirins_ok) { - if (! is_writable(dol_osencode($dirins))) + if (!is_writable(dol_osencode($dirins))) { $langs->load("errors"); - $message=info_admin($langs->trans("ErrorFailedToWriteInDir", $dirins)); + $message=info_admin($langs->trans("ErrorFailedToWriteInDir", $dirins), 0, 0, '1', 'warning'); $allowfromweb=0; } } diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index f41f8f976c1..1ec0bda3017 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -3774,7 +3774,7 @@ function img_searchclear($titlealt = 'default', $other = '') * @param integer $infoonimgalt Info is shown only on alt of star picto, otherwise it is show on output after the star picto * @param int $nodiv No div * @param string $admin '1'=Info for admin users. '0'=Info for standard users (change only the look), 'error','xxx'=Other - * @param string $morecss More CSS + * @param string $morecss More CSS ('', 'warning', 'error') * @return string String with info text */ function info_admin($text, $infoonimgalt = 0, $nodiv = 0, $admin = '1', $morecss = '')