Added multiple upload file in issue.

This fixes issue 54.
This commit is contained in:
Loic d'Anterroches
2008-11-27 11:10:23 +01:00
parent 566c90cf6a
commit 0273e535e0
6 changed files with 254 additions and 135 deletions

View File

@@ -114,6 +114,7 @@ class IDF_IssueFile extends Pluf_Model
$this->filename = substr(basename($file), 0, -6);
$img_extensions = array('jpeg', 'jpg', 'png', 'gif');
$info = pathinfo($this->filename);
if (!isset($info['extension'])) $info['extension'] = '';
if (in_array(strtolower($info['extension']), $img_extensions)) {
$this->type = 'img';
} else {