Add flag to allow to save image without validation

This commit is contained in:
Max Kostikov 2018-12-02 21:59:08 +01:00
parent 2a57e00cb4
commit 19903ea3c1

View File

@ -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;
}