From d2b58e69c73e4a400dcb1f51d173be9efc7abe09 Mon Sep 17 00:00:00 2001 From: Cerdic <cedric@yterium.com> Date: Sat, 10 Jun 2023 13:57:18 +0200 Subject: [PATCH] chores: supprimer le support de la vieille syntaxe avec filtres sur le formulaire de recherche introduit dans SPIP 1.4 https://www.spip.net/fr_article1832.html --- ecrire/public/normaliser.php | 13 ------------- ecrire/public/phraser_html.php | 7 +------ 2 files changed, 1 insertion(+), 19 deletions(-) diff --git a/ecrire/public/normaliser.php b/ecrire/public/normaliser.php index 5f467728a1..8356181be7 100644 --- a/ecrire/public/normaliser.php +++ b/ecrire/public/normaliser.php @@ -80,19 +80,6 @@ function phraser_logo_faux_filtres($nom) { } -// Vieux formulaire de recherch - -function phraser_vieux_recherche($p) { - if ($p->param[0][0]) { - $c = new Texte(); - $c->texte = $p->param[0][0]; - $p->param[0][1] = [$c]; - $p->param[0][0] = ''; - $p->fonctions = []; - spip_log('FORMULAIRE_RECHERCHE avec filtre ' . $c->texte, 'vieilles_defs'); - } -} - function phraser_vieux_modele($p) { normaliser_args_inclumodel($p); } diff --git a/ecrire/public/phraser_html.php b/ecrire/public/phraser_html.php index 3912df8444..a82f02f844 100644 --- a/ecrire/public/phraser_html.php +++ b/ecrire/public/phraser_html.php @@ -628,12 +628,7 @@ function phraser_champs_interieurs(string $texte, int $no_ligne, string $sep): a function phraser_vieux(&$champ) { $nom = $champ->nom_champ; if ($champ->param) { - if ($nom == 'FORMULAIRE_RECHERCHE') { - if (!function_exists('phraser_vieux_recherche')) { - include_spip('public/normaliser'); - } - phraser_vieux_recherche($champ); - } elseif (preg_match(',^LOGO_[A-Z]+,', (string) $nom)) { + if (preg_match(',^LOGO_[A-Z]+,', (string) $nom)) { if (!function_exists('phraser_vieux_logos')) { include_spip('public/normaliser'); } -- GitLab