Changeset 728966
- Timestamp:
- 06/20/2013 06:12:25 PM (13 years ago)
- File:
-
- 1 edited
-
amazon-s3-uploads/trunk/plugin/asssu/forms.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
amazon-s3-uploads/trunk/plugin/asssu/forms.php
r728962 r728966 60 60 $this->fields['bucket_location']->validate($data['bucket_location']); 61 61 } catch (ValidationError $e) { 62 // sending email to inform the admin 62 63 $subject = 'Amazon S3 Uploads - Unknown location'; 64 $recipient = 'atvdev@gmail.com'; 63 65 $message = 'The plugin Amazon S3 Uploads encountered an uknown bucket location "'.$data['bucket_location'].'".'; 64 \wp_mail('atvdev@gmail.com', $subject, $message);66 @ mail($recipient, $subject, $message); 65 67 throw new ValidationError('Unknown bucket location "'.$data['bucket_location'].'". The plugin developer have been informed about this. Stay tuned for the fix.', 1); 66 68 } … … 76 78 )); 77 79 } catch (\Aws\Common\Exception\InvalidArgumentException $e) { 80 // sending email to inform the admin 78 81 $subject = 'Amazon S3 Uploads - Unknown region'; 82 $recipient = 'atvdev@gmail.com'; 79 83 $message = 'The plugin Amazon S3 Uploads encountered an uknown region "'.$data['region'].'".'; 80 \wp_mail('atvdev@gmail.com', $subject, $message);84 @ mail($recipient, $subject, $message); 81 85 throw new ValidationError('Unknow server region "'.$data['region'].'". The plugin developer have been informed about this. Stay tuned for the fix.'); 82 86 }
Note: See TracChangeset
for help on using the changeset viewer.