diff --git a/ecrire/public/normaliser.php b/ecrire/public/normaliser.php index 5f467728a19f7c9759135103e8edeee31bad4bf2..8356181be762962c506ea9969699e56a15918de4 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 3912df8444d2046b785e11479e7a9db5e9ce3c62..a82f02f8440bbdb98847507155a630f214ce7229 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'); }