Skip to content

Commit

Permalink
Update ps_imageslider.php
Browse files Browse the repository at this point in the history
  • Loading branch information
buggyzap authored Apr 30, 2024
1 parent 9183d0c commit 9fc2ec2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ps_imageslider.php
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,8 @@ protected function _postProcess()
$slide->image[$language['id_lang']] = $salt . '_' . $_FILES['image_' . $language['id_lang']]['name'];
} elseif (Tools::getValue('image_old_' . $language['id_lang']) != '') {
$slide->image[$language['id_lang']] = Tools::getValue('image_old_' . $language['id_lang']);
} else {
$errors[] = $this->displayError($this->trans('Uploaded file is not supported, only jpg, gif, jpeg, png are allowed.', [], 'Admin.Notifications.Error'));
}
}

Expand Down

0 comments on commit 9fc2ec2

Please sign in to comment.