File: phpbb/install/module/install_finish/task/notify_user.php
Unmodified
Added
Modified
Removed
Line 36 | Line 36 |
---|
protected $auth;
/**
|
protected $auth;
/**
|
* @var \phpbb\config\db
| * @var db
|
*/ protected $config;
| */ protected $config;
|
Line 96 | Line 96 |
---|
$cache, $container->get_parameter('tables.config') );
|
$cache, $container->get_parameter('tables.config') );
|
| global $config; $config = $this->config;
|
parent::__construct(true); }
| parent::__construct(true); }
|
Line 111 | Line 114 |
---|
if ($this->config['email_enable']) { include ($this->phpbb_root_path . 'includes/functions_messenger.' . $this->php_ext);
|
if ($this->config['email_enable']) { include ($this->phpbb_root_path . 'includes/functions_messenger.' . $this->php_ext);
|
// functions_messenger.php uses config to determine language paths // Remove when able global $config; $config = $this->config;
| |
$messenger = new \messenger(false); $messenger->template('installed', $this->install_config->get('user_language', 'en')); $messenger->to($this->config['board_email'], $this->install_config->get('admin_name')); $messenger->anti_abuse_headers($this->config, $this->user); $messenger->assign_vars(array(
|
$messenger = new \messenger(false); $messenger->template('installed', $this->install_config->get('user_language', 'en')); $messenger->to($this->config['board_email'], $this->install_config->get('admin_name')); $messenger->anti_abuse_headers($this->config, $this->user); $messenger->assign_vars(array(
|
'USERNAME' => htmlspecialchars_decode($this->install_config->get('admin_name')), 'PASSWORD' => htmlspecialchars_decode($this->install_config->get('admin_passwd')))
| 'USERNAME' => html_entity_decode($this->install_config->get('admin_name'), ENT_COMPAT), 'PASSWORD' => html_entity_decode($this->install_config->get('admin_passwd'), ENT_COMPAT))
|
); $messenger->send(NOTIFY_EMAIL); }
| ); $messenger->send(NOTIFY_EMAIL); }
|