setError in juser plugin if email are disabled in the main site config

Status
Not open for further replies.

lcollong

FabriKant d'applications web
Hi,

In juser plugin, I got this error if the email sending are disabled in the general config of the site.

0 Call to undefined method PlgFabrik_FormJUser::setError()
/plugins/fabrik_form/juser/juser.php:744

It creates the user but at the end it should raise a message saying "admin has disabled email from this site"
 
Change \plugins\fabrik_form\juser\juser.php line 744 to
$this->app->enqueueMessage(Text::_('COM_USERS_REGISTRATION_SEND_MAIL_FAILED'),'warning');

and line 765 to
. $this->_db->q(Text::sprintf('COM_USERS_MAIL_SEND_FAILURE_BODY', $data['username'])) . ")";
(the J! text string changed, now only expecting the username)
 
Status
Not open for further replies.
Back
Top