Commits

Christoffer Niska  committed 6e2fe71

fixed default path for originals

  • Participants
  • Parent commits 9523aeb

Comments (0)

Files changed (2)

File components/ImgManager.php

 	/**
 	 * @var string the name of the original directory.
 	 */
-	public $originalDir='original';
+	public $originalDir='originals';
 	/**
 	 * @var string the name of the version directory.
 	 */

File models/Image.php

 	{
 		return !empty($this->path) ? $this->path.'/' : '';
 	}
+
+	/**
+	 * @return string the image file name.
+	 */
+	public function resolveFilename()
+	{
+		return (!empty($this->name) ? $this->name : $this->id).'.'.$this->extension;
+	}
 }