forked from Wavyzz/dolibarr
Ajout traduction des descriptions des modeles pdf
Dplacement de la fonction _dol_htmlentities() dans function.inc.php afin d'viter les erreur fatal lorsque plusieurs modles l'incluait
This commit is contained in:
@@ -2370,4 +2370,17 @@ function hexbin($hexa){
|
||||
return $bin;
|
||||
}
|
||||
|
||||
// Cette fonction est appel<65>e pour coder ou non une chaine en html
|
||||
// selon qu'on compte l'afficher dans le PDF avec:
|
||||
// writeHTMLCell -> a besoin d'etre encod<6F> en HTML
|
||||
// MultiCell -> ne doit pas etre encod<6F> en HTML
|
||||
function _dol_htmlentities($stringtoencode,$isstringalreadyhtml)
|
||||
{
|
||||
global $conf;
|
||||
|
||||
if ($isstringalreadyhtml) return $stringtoencode;
|
||||
if ($conf->fckeditor->enabled) return htmlentities($stringtoencode);
|
||||
return $stringtoencode;
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user