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

chores: supprimer le support de la vieille syntaxe avec filtres sur le...

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
parent 89e67f36
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -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);
}
......
......@@ -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');
}
......
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