diff --git a/main/inc/email_editor_external.php b/main/inc/email_editor_external.php index a2d676c487..bbe97999dd 100644 --- a/main/inc/email_editor_external.php +++ b/main/inc/email_editor_external.php @@ -5,11 +5,11 @@ use ChamiloSession as Session; /** - * This script contains the code to send an e-mail to the portal admin + * This script contains the code to send an e-mail to the portal admin. */ require_once __DIR__.'/../inc/global.inc.php'; -if (false === api_get_configuration_value('allow_external_email_editor')) { +if (false === api_get_configuration_value('allow_email_editor_for_anonymous')) { api_not_allowed(true); } diff --git a/main/inc/lib/template.lib.php b/main/inc/lib/template.lib.php index 2ebad30cbc..17669bf63b 100755 --- a/main/inc/lib/template.lib.php +++ b/main/inc/lib/template.lib.php @@ -823,7 +823,7 @@ class Template $template = $this->get_template('mail_editor/email_link.js.tpl'); $js_file_to_string .= $this->fetch($template); } else { - if (api_get_configuration_value('allow_external_email_editor')) { + if (api_get_configuration_value('allow_email_editor_for_anonymous')) { $link = 'email_editor_external.php'; $this->assign('email_editor', $link); $template = $this->get_template('mail_editor/email_link.js.tpl');