diff options
Diffstat (limited to 'plugins/mail')
-rw-r--r-- | plugins/mail/init.php | 2 | ||||
-rw-r--r-- | plugins/mail/mail.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mail/init.php b/plugins/mail/init.php index d96006b21..16e22f342 100644 --- a/plugins/mail/init.php +++ b/plugins/mail/init.php @@ -152,7 +152,7 @@ class Mail extends Plugin { <script type='dojo/method' event='onSubmit' args='evt'> evt.preventDefault(); if (this.validate()) { - xhrJson("backend.php", this.getValues(), (reply) => { + xhr.json("backend.php", this.getValues(), (reply) => { if (reply && reply.error) Notify.error(reply.error); else diff --git a/plugins/mail/mail.js b/plugins/mail/mail.js index 36b0baac5..fc0898085 100644 --- a/plugins/mail/mail.js +++ b/plugins/mail/mail.js @@ -17,7 +17,7 @@ Plugins.Mail = { title: __("Forward article by email"), execute: function () { if (this.validate()) { - xhrJson("backend.php", this.attr('value'), (reply) => { + xhr.json("backend.php", this.attr('value'), (reply) => { if (reply) { const error = reply['error']; |