dever 5 gadi atpakaļ
vecāks
revīzija
c0bcf1ca87
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  1. 3 0
      lib/Store/Core.php

+ 3 - 0
lib/Store/Core.php

@@ -429,6 +429,9 @@ class Core
 	protected function ext()
 	{
 		$this->ext  = $this->ext ? $this->ext : '.' . pathinfo($this->data['file']['name'], PATHINFO_EXTENSION);
+		if ($this->ext == '.') {
+			$this->ext = '.jpg';
+		}
 
 		return $this;
 	}