From: x2003bruneau Date: Tue, 28 Feb 2006 20:15:44 +0000 (+0000) Subject: =?utf-8?q?*=20Affiche=20le=20lien=20'aper=C3=83=C2=A7u'=20quelque=20soit=20le=20type... X-Git-Tag: 1.8~283 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=51e89e48ffde11f863a2ce24720c16465c76fa42;p=banana.git =?utf-8?q?*=20Affiche=20le=20lien=20'aper=C3=83=C2=A7u'=20quelque=20soit=20le=20type=20mime=20du=20fichier=20=3D=3D>=20permet=20d'=C3=83=C2=A9viter=20que=20ce=20soit=20banana=20le=20facteur=20limitant,=20=C3=83=C2=A7a=20devient=20le=20navigateur.=20Dans=20l'id=C3=83=C2=A9al,=20il=20faudrait=20qu'on=20puisse=20n'afficher=20le=20lien=20que=20pour=20les=20type=20mime=20support=C3=83=C2=A9s=20par=20le=20navigateur...=20mais=20bon. =20*=20Affiche=20l'aper=C3=83=C2=A7u=20des=20pi=C3=83=C5=A1ces=20jointes=20dans=20une=20nouvelle=20fen=C3=83=C2=AAtre?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit git-svn-id: svn+ssh://murphy/home/svn/banana/trunk@9 9869982d-c50d-0410-be91-f2a2ec7c7c7b --- diff --git a/banana/post.inc.php b/banana/post.inc.php index 3a04aea..1987b56 100644 --- a/banana/post.inc.php +++ b/banana/post.inc.php @@ -310,9 +310,7 @@ class BananaPost foreach ($this->pj as $file) { $res .= $file['filename'].' ('.$file['MIME'].') : '; $res .= 'télécharger'; - if (preg_match("@(image|text)/@", $file['MIME'])) { - $res .= ' . aperçu'; - } + $res .= ' . aperçu'; $res .= '
'; $i++; }