Don't stop upload when adjustFile returns false
This commit is contained in:
parent
a8d792dcf1
commit
a1b2d0a746
@ -117,10 +117,7 @@ class Photo extends Module {
|
|||||||
|
|
||||||
# Set orientation based on EXIF data
|
# Set orientation based on EXIF data
|
||||||
if ($file['type']==='image/jpeg'&&isset($info['orientation'])&&$info['orientation']!==''&&isset($info['width'])&&isset($info['height'])) {
|
if ($file['type']==='image/jpeg'&&isset($info['orientation'])&&$info['orientation']!==''&&isset($info['width'])&&isset($info['height'])) {
|
||||||
if (!$this->adjustFile($path, $info)) {
|
if (!$this->adjustFile($path, $info)) Log::notice($this->database, __METHOD__, __LINE__, 'Could not adjust photo (' . $info['title'] . ')');
|
||||||
Log::error($this->database, __METHOD__, __LINE__, 'Could not adjust photo');
|
|
||||||
exit('Error: Could not adjust photo!');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Set original date
|
# Set original date
|
||||||
|
Loading…
Reference in New Issue
Block a user