dever před 6 roky
rodič
revize
93c6e9bbc2
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      lib/Store/Local.php

+ 1 - 1
lib/Store/Local.php

@@ -32,7 +32,7 @@ class Local extends Core implements Config
 				$file = Dever::load('upload/file-name', array('where_name' => $this->name, 'where_upload' => $this->data['key'], 'rand' => time()));
 			}
 
-			if (!$this->limit) {
+			if (!$this->limit && ($this->ext == '.jpg' || $this->ext == '.gif' || $this->ext == '.png')) {
 				$this->limit = getimagesize($this->output['file']);
 			}