* Affiche le lien 'aperçu' quelque soit le type mime du fichier ==> permet d'éviter...
[banana.git] / 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++;
             }