dever %!s(int64=6) %!d(string=hai) anos
pai
achega
93c6e9bbc2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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']);
 			}