From 22c54e3f048d7c7c4f903bee98a4028e45c4bcf2 Mon Sep 17 00:00:00 2001 From: Fil <fil@rezo.net> Date: Tue, 9 May 2006 20:22:07 +0000 Subject: [PATCH] =?UTF-8?q?le=20trombone=20des=20fichiers=20attach=C3=A9s?= =?UTF-8?q?=20reste=20en=20microformats?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ecrire/inc/filtres.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/ecrire/inc/filtres.php b/ecrire/inc/filtres.php index dad9a71ce7..0389cdf10d 100644 --- a/ecrire/inc/filtres.php +++ b/ecrire/inc/filtres.php @@ -2530,11 +2530,12 @@ function afficher_enclosures($tags) { foreach (extraire_tags($tags) as $tag) { if (extraire_attribut($tag, 'rel') == 'enclosure' AND $t = extraire_attribut($tag, 'href')) { - include_spip('inc/minipres'); #pour http_href_img (quel bazar) - $s[] = http_href_img($t, - 'attachment.gif', - 'height="15" width="15"', - entites_html($t)); + include_spip('inc/minipres'); #pour http_img_pack (quel bazar) + $s[] = preg_replace(',>[^<]+</a>,', + '>' + .http_img_pack('attachment.gif', $t, + 'height="15" width="15" title="'.attribut_html($t).'"') + .'</a>', $tag); } } return join(' ', $s); -- GitLab