diff options
author | Max Kostikov <max@kostikov.co> | 2018-12-02 21:59:08 +0100 |
---|---|---|
committer | Max Kostikov <max@kostikov.co> | 2018-12-02 21:59:08 +0100 |
commit | 19903ea3c1eecf24d72c76970c6027362c9df89e (patch) | |
tree | 285023dcb5d10028a6916ab500ea8c2addbf1e20 /include | |
parent | 2a57e00cb4a7dada0993e91e0e2176ad335cf12f (diff) | |
download | volse-hubzilla-19903ea3c1eecf24d72c76970c6027362c9df89e.tar.gz volse-hubzilla-19903ea3c1eecf24d72c76970c6027362c9df89e.tar.bz2 volse-hubzilla-19903ea3c1eecf24d72c76970c6027362c9df89e.zip |
Add flag to allow to save image without validation
Diffstat (limited to 'include')
-rw-r--r-- | include/photo/photo_driver.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/photo/photo_driver.php b/include/photo/photo_driver.php index b70a13622..6ec5602f4 100644 --- a/include/photo/photo_driver.php +++ b/include/photo/photo_driver.php @@ -330,9 +330,9 @@ abstract class photo_driver { } - public function save($arr) { + public function save($arr, $skipcheck = false) { - if(! $this->is_valid()) { + if(! ($skipcheck || $this->is_valid())) { logger('attempt to store invalid photo.'); return false; } |