Notice PHP en moins.

svn/root/tags/v1.5.2
marcimat@rezo.net 8 years ago
parent 6324b4b335
commit 2e700e485d

@ -374,7 +374,11 @@ function orthotypo_exposants_echappe_balises_callback($matches) {
}
function orthotypo_exposants_post_typo($texte){
if (!$lang = $GLOBALS['lang_objet']) $lang = $GLOBALS['spip_lang'];
if (!empty($GLOBALS['lang_objet'])) {
$lang = $GLOBALS['lang_objet'];
} else {
$lang = $GLOBALS['spip_lang'];
}
if(function_exists($fonction = 'orthotypo_exposants_'.lang_typo($lang))){
// prudence : on protege les balises <a> et <img>
if (strpos($texte, '<')!==false)
@ -538,4 +542,4 @@ function orthotypo_corrections_pre_propre($texte) {
return orthotypo_filtre_texte_echappe($texte,'orthotypo_corrections_rempl');
}
?>
?>

@ -1,7 +1,7 @@
<paquet
prefix="orthotypo"
categorie="edition"
version="1.4.0"
version="1.4.1"
etat="stable"
compatibilite="[3.0.0;3.1.*]"
logo="prive/themes/spip/images/orthotypo-32.png"
@ -22,4 +22,4 @@
<pipeline nom="post_typo" inclure="orthotypo_fonctions.php" />
<pipeline nom="pre_propre" inclure="orthotypo_fonctions.php" />
</paquet>
</paquet>

Loading…
Cancel
Save