From 6ae4246e095050c135ca80634c5f18c4e84ffabf Mon Sep 17 00:00:00 2001 From: RealET Date: Fri, 3 Mar 2023 14:22:34 +0100 Subject: [PATCH] =?UTF-8?q?fix=20:=20compatibilit=C3=A9=20SPIP=204.2=20sui?= =?UTF-8?q?te=20=C3=A0=20suppression=20d'un=20define?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- accessibilite_pipelines.php | 6 ++++-- paquet.xml | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/accessibilite_pipelines.php b/accessibilite_pipelines.php index b371acf..bf5ef6d 100644 --- a/accessibilite_pipelines.php +++ b/accessibilite_pipelines.php @@ -2,6 +2,8 @@ function accessibilite_pre_liens($texte){ if (!defined('_ACCESSIBILITE_CONSERVER_BULLE')) define('_ACCESSIBILITE_CONSERVER_BULLE', false); + // Compat SPIP 4.2 + defined('_RACCOURCI_LIEN') || define('_RACCOURCI_LIEN', '/\[([^][]*?([[][^]>-]*[]][^][]*)*)->(>?)([^]]*)\]/msS'); $regs = $match = array(); // pour chaque lien if (preg_match_all(_RACCOURCI_LIEN, $texte, $regs, PREG_SET_ORDER)) { @@ -19,12 +21,12 @@ function accessibilite_pre_liens($texte){ ); $textelien = ($intitule[0]) ? $intitule[0]:supprimer_numero(typo($row['T1'])); $langue = ($intitule[2]) ? '{'.$intitule[2].'}':''; - // Si intitulé du lien, le reprendre, + // Si intitul� du lien, le reprendre, // Sinon, si titre pour le doc, le reprendre, // Sinon remplacer par "Document" $titredoc = ($intitule[0]) ? $intitule[0]: (($row['T1']) ? $row['T1']:_T('info_document')); - // Quand un title est spécifie il doit etre plus plus long que l'intitule + // Quand un title est sp�cifie il doit etre plus plus long que l'intitule // car les lecteurs d'ecran lisent le plus long des deux $title = ((($intitule[1]) && _ACCESSIBILITE_CONSERVER_BULLE) ? textebrut(supprimer_numero(typo($intitule[1]))) . ' (' . textebrut(supprimer_numero(typo($titredoc))) . ')':textebrut(supprimer_numero(typo($titredoc)))) // Le texte du lien + Nom du doc diff --git a/paquet.xml b/paquet.xml index fe8e436..58622c6 100644 --- a/paquet.xml +++ b/paquet.xml @@ -1,9 +1,9 @@