UseFileAsThumbnailException uses direct File object now

This commit is contained in:
Mikael Nordfeldth
2016-05-04 11:34:50 +02:00
parent 60130633f0
commit 87dd0fbdb6
3 changed files with 9 additions and 9 deletions

View File

@@ -498,7 +498,7 @@ class File extends Managed_DataObject
return File_thumbnail::byFile($this);
} catch (NoResultException $e) {
// and if it's not a remote file, it'll be safe to use the locally stored File
throw new UseFileAsThumbnailException($this->id);
throw new UseFileAsThumbnailException($this);
}
}
}