diff --git a/ecrire/public/normaliser.php b/ecrire/public/normaliser.php index 2352607209332fdd4f6fcc3a16a8720cc2bdb7dc..a61e5fe412ebf7e21bb002b5f99dbe58fd887b2f 100644 --- a/ecrire/public/normaliser.php +++ b/ecrire/public/normaliser.php @@ -80,36 +80,6 @@ function phraser_logo_faux_filtres($nom) { } -// La balise embed_document est a present le modele emb - -function phraser_vieux_emb(&$p) { - if (!is_array($p->param)) { - $p->param = []; - } - - // Produire le premier argument {emb} - $texte = new Texte(); - $texte->texte = 'emb'; - $param = ['', [$texte]]; - - // Transformer les filtres en arguments - $paramCount = is_countable($p->param) ? count($p->param) : 0; - for ($i = 0; $i < $paramCount; $i++) { - if ($p->param[$i][0]) { - if (!strstr((string) $p->param[$i][0], '=')) { - break; - }# on a rencontre un vrai filtre, c'est fini - $texte = new Texte(); - $texte->texte = $p->param[$i][0]; - $param[] = [$texte]; - } - array_shift($p->param); - } - array_unshift($p->param, $param); - spip_log('balise EMBED_DOCUMENT obsolete', 'vieilles_defs'); - $p->nom_champ = 'MODELE'; -} - // Vieux formulaire de recherch function phraser_vieux_recherche($p) { diff --git a/ecrire/public/phraser_html.php b/ecrire/public/phraser_html.php index 0fee8f9b2167913d1c42244e88cc0096872a8f4b..f577422629b181a685d07234f4e2ae261ed9e8bc 100644 --- a/ecrire/public/phraser_html.php +++ b/ecrire/public/phraser_html.php @@ -627,12 +627,7 @@ function phraser_champs_interieurs(string $texte, int $no_ligne, string $sep): a function phraser_vieux(&$champ) { $nom = $champ->nom_champ; - if ($nom == 'EMBED_DOCUMENT') { - if (!function_exists('phraser_vieux_emb')) { - include_spip('public/normaliser'); - } - phraser_vieux_emb($champ); - } elseif ($nom == 'EXPOSER') { + if ($nom == 'EXPOSER') { if (!function_exists('phraser_vieux_exposer')) { include_spip('public/normaliser'); }