dever il y a 6 ans
Parent
commit
87d25ffe7a
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/View.php

+ 1 - 1
src/View.php

@@ -53,7 +53,7 @@ class View
             $pic = Dever::config('host')->script . 'img/video.jpg';
             foreach ($data['file'] as $k => $v) {
                 $data['file'][$k]['url'] = Dever::upload('{uploadRes}' . $v['file']);
-                if ($v['ext'] != '.jpg' && $v['ext'] != '.png' && $v['ext'] != '.bmp') {
+                if ($v['ext'] != '.jpg' && $v['ext'] != '.png' && $v['ext'] != '.bmp' && $v['ext'] != '.gif') {
                     $data['file'][$k]['pic'] = $pic;
                 } else {
                     $data['file'][$k]['pic'] = $data['file'][$k]['url'];