Minor - fix config variable changed to allow_email_editor_for_anonymous

pull/3732/head
Julio Montoya 5 years ago
parent 6e166320e1
commit aeb1d0613a
  1. 4
      main/inc/email_editor_external.php
  2. 2
      main/inc/lib/template.lib.php

@ -5,11 +5,11 @@
use ChamiloSession as Session; 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'; 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); api_not_allowed(true);
} }

@ -823,7 +823,7 @@ class Template
$template = $this->get_template('mail_editor/email_link.js.tpl'); $template = $this->get_template('mail_editor/email_link.js.tpl');
$js_file_to_string .= $this->fetch($template); $js_file_to_string .= $this->fetch($template);
} else { } 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'; $link = 'email_editor_external.php';
$this->assign('email_editor', $link); $this->assign('email_editor', $link);
$template = $this->get_template('mail_editor/email_link.js.tpl'); $template = $this->get_template('mail_editor/email_link.js.tpl');

Loading…
Cancel
Save