correction mineure : éviter un warning lors de l'installation (le charset du site n'est pas encore en meta)

pull/4/head
cy_altern 10 months ago
parent 8b8d2f22d5
commit 7a6de2208d

@ -342,7 +342,8 @@ function orthotypo_exposants_fr($texte){
static $typo = null;
static $egrave; static $eaigu1; static $eaigu2; static $accents;
if (is_null($typo)) {
$u = ($GLOBALS['meta']['charset']=="utf-8"?"u":"");
$u = isset($GLOBALS['meta']['charset']) ? ($GLOBALS['meta']['charset']=="utf-8"?"u":"") : '';
// en principe, pas besoin de : caractere_utf_8(232)
$carre = unicode2charset('²').'|²|²';
$egrave = unicode2charset('è').'|è|è';

Loading…
Cancel
Save