Skip to content
Extraits de code Groupes Projets
Valider c8abe800 rédigé par cerdic's avatar cerdic
Parcourir les fichiers

nettoyer le title automatique

parent 265baade
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -42,7 +42,7 @@ function affichage_final_prive_title_auto($texte){ ...@@ -42,7 +42,7 @@ function affichage_final_prive_title_auto($texte){
AND AND
(preg_match(",<h1[^>]*>(.+)</h1>,Uims", $texte, $match) (preg_match(",<h1[^>]*>(.+)</h1>,Uims", $texte, $match)
OR preg_match(",<h[23][^>]*>(.+)</h[23]>,Uims", $texte, $match)) OR preg_match(",<h[23][^>]*>(.+)</h[23]>,Uims", $texte, $match))
AND $match = trim($match[1]) AND $match = textebrut(trim($match[1]))
AND ($p = strpos($texte,'<head>'))!==FALSE) { AND ($p = strpos($texte,'<head>'))!==FALSE) {
if (!$nom_site_spip = textebrut(typo($GLOBALS['meta']["nom_site"]))) if (!$nom_site_spip = textebrut(typo($GLOBALS['meta']["nom_site"])))
$nom_site_spip= _T('info_mon_site_spip'); $nom_site_spip= _T('info_mon_site_spip');
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter