check if thumbnail already exists before regenerating it, way to force regen.

This commit is contained in:
Thasan
2012-01-12 03:54:27 +02:00
parent 8cfa72d7cf
commit 9f8a49483f
4 changed files with 18 additions and 3 deletions

View File

@@ -97,9 +97,10 @@ class ThumbnailGenerationEvent extends Event {
* @param $hash The unique hash of the image
* @param $type The type of the image
*/
public function ThumbnailGenerationEvent($hash, $type) {
public function ThumbnailGenerationEvent($hash, $type, $force=false) {
$this->hash = $hash;
$this->type = $type;
$this->force = $force;
}
}