=?utf-8?q?*=20Affiche=20le=20lien=20'aper=C3=83=C2=A7u'=20quelque=20soit=20le=20type...
authorx2003bruneau <x2003bruneau@9869982d-c50d-0410-be91-f2a2ec7c7c7b>
Tue, 28 Feb 2006 20:15:44 +0000 (20:15 +0000)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Fri, 4 Jan 2008 23:34:32 +0000 (00:34 +0100)
=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

banana/post.inc.php

index 3a04aea..1987b56 100644 (file)
@@ -310,9 +310,7 @@ class BananaPost
             foreach ($this->pj as $file) {
                 $res .= $file['filename'].' ('.$file['MIME'].') : ';
                 $res .= '<a href="pj.php?group='.$banana->state['group'].'&artid='.$this->id.'&pj='.$i.'">télécharger</a>';
-                if (preg_match("@(image|text)/@", $file['MIME'])) {
-                    $res .= ' . <a href="pj.php?group='.$banana->state['group'].'&artid='.$this->id.'&pj='.$i.'&action=view">aperçu</a>';
-                }
+                $res .= ' . <a href="pj.php?group='.$banana->state['group'].'&artid='.$this->id.'&pj='.$i.'&action=view" target="_blank">aperçu</a>';
                 $res .=  '<br/>';
                 $i++;
             }