mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-06 15:45:34 +02:00
[ticket/14044] Add config as global in notify user
PHPBB3-14044
This commit is contained in:
parent
719f42c54a
commit
f991e484da
@ -104,12 +104,15 @@ class notify_user extends \phpbb\install\task_base
|
||||
$this->user->session_begin();
|
||||
$this->user->setup('common');
|
||||
|
||||
$this->language->set_default_language($this->config['default_lang']);
|
||||
|
||||
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'));
|
||||
|
Loading…
x
Reference in New Issue
Block a user