2
0
forked from Wavyzz/dolibarr
This commit is contained in:
Laurent Destailleur
2019-12-16 11:32:27 +01:00
parent 2e58bf40b8
commit 28bcb49957
2 changed files with 3 additions and 3 deletions

View File

@@ -993,10 +993,10 @@ if ($mode == 'deploy')
{ {
if ($dirins_ok) if ($dirins_ok)
{ {
if (! is_writable(dol_osencode($dirins))) if (!is_writable(dol_osencode($dirins)))
{ {
$langs->load("errors"); $langs->load("errors");
$message=info_admin($langs->trans("ErrorFailedToWriteInDir", $dirins)); $message=info_admin($langs->trans("ErrorFailedToWriteInDir", $dirins), 0, 0, '1', 'warning');
$allowfromweb=0; $allowfromweb=0;
} }
} }

View File

@@ -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 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 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 $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 * @return string String with info text
*/ */
function info_admin($text, $infoonimgalt = 0, $nodiv = 0, $admin = '1', $morecss = '') function info_admin($text, $infoonimgalt = 0, $nodiv = 0, $admin = '1', $morecss = '')