mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-12 04:21:30 +01:00
Add param morecss on error message
This commit is contained in:
@@ -2278,7 +2278,7 @@ function dol_print_phone($phone,$countrycode='',$cid=0,$socid=0,$addlink='',$sep
|
|||||||
$titlealt=($withpicto=='fax'?$langs->trans("Fax"):$langs->trans("Phone"));
|
$titlealt=($withpicto=='fax'?$langs->trans("Fax"):$langs->trans("Phone"));
|
||||||
}
|
}
|
||||||
$rep='';
|
$rep='';
|
||||||
|
|
||||||
if ($hookmanager) {
|
if ($hookmanager) {
|
||||||
$parameters = array('countrycode' => $countrycode, 'cid' => $cid, 'socid' => $socid,'titlealt' => $titlealt, 'picto' => $withpicto);
|
$parameters = array('countrycode' => $countrycode, 'cid' => $cid, 'socid' => $socid,'titlealt' => $titlealt, 'picto' => $withpicto);
|
||||||
$reshook = $hookmanager->executeHooks('printPhone', $parameters, $phone);
|
$reshook = $hookmanager->executeHooks('printPhone', $parameters, $phone);
|
||||||
@@ -2304,7 +2304,7 @@ function dol_print_phone($phone,$countrycode='',$cid=0,$socid=0,$addlink='',$sep
|
|||||||
if ($adddivfloat) $rep.='</div>';
|
if ($adddivfloat) $rep.='</div>';
|
||||||
else $rep.='</span>';
|
else $rep.='</span>';
|
||||||
}
|
}
|
||||||
|
|
||||||
return $rep;
|
return $rep;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3520,15 +3520,16 @@ function dol_print_error($db='',$error='',$errors=null)
|
|||||||
* @param string $prefixcode Prefix of public error code
|
* @param string $prefixcode Prefix of public error code
|
||||||
* @param string $errormessage Complete error message
|
* @param string $errormessage Complete error message
|
||||||
* @param array $errormessages Array of error messages
|
* @param array $errormessages Array of error messages
|
||||||
|
* @param string $morecss More css
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
function dol_print_error_email($prefixcode, $errormessage='', $errormessages=array())
|
function dol_print_error_email($prefixcode, $errormessage='', $errormessages=array(), $morecss='error')
|
||||||
{
|
{
|
||||||
global $langs,$conf;
|
global $langs,$conf;
|
||||||
|
|
||||||
$langs->load("errors");
|
$langs->load("errors");
|
||||||
$now=dol_now();
|
$now=dol_now();
|
||||||
print '<br><div class="center login_main_message"><div class="error">';
|
print '<br><div class="center login_main_message"><div class="'.$morecss.'">';
|
||||||
print $langs->trans("ErrorContactEMail", $conf->global->MAIN_INFO_SOCIETE_MAIL, $prefixcode.dol_print_date($now,'%Y%m%d'));
|
print $langs->trans("ErrorContactEMail", $conf->global->MAIN_INFO_SOCIETE_MAIL, $prefixcode.dol_print_date($now,'%Y%m%d'));
|
||||||
if ($errormessage) print '<br><br>'.$errormessage;
|
if ($errormessage) print '<br><br>'.$errormessage;
|
||||||
if (is_array($errormessages) && count($errormessages))
|
if (is_array($errormessages) && count($errormessages))
|
||||||
|
|||||||
Reference in New Issue
Block a user