forked from GNUsocial/gnu-social
forgot 'new' after throw
This commit is contained in:
parent
15c16ac54e
commit
566977c136
@ -188,7 +188,7 @@ class File_thumbnail extends Managed_DataObject
|
|||||||
$file_filename = $this->getFile()->getFilename();
|
$file_filename = $this->getFile()->getFilename();
|
||||||
} catch (NoResultException $e) {
|
} catch (NoResultException $e) {
|
||||||
// reasonably the function calling us will handle the following as "File_thumbnail entry should be deleted"
|
// reasonably the function calling us will handle the following as "File_thumbnail entry should be deleted"
|
||||||
throw FileNotFoundException($thumbpath);
|
throw new FileNotFoundException($thumbpath);
|
||||||
} catch (InvalidFilenameException $e) {
|
} catch (InvalidFilenameException $e) {
|
||||||
// invalid filename in getFile()->getFilename(), just
|
// invalid filename in getFile()->getFilename(), just
|
||||||
// means the File object isn't stored locally and that
|
// means the File object isn't stored locally and that
|
||||||
|
Loading…
Reference in New Issue
Block a user