โดย thatsawan » 10/03/2016 11:23 pm
atal error: Cannot use object of type phpbb\user as array in /home/jobthai/domains/jobthai.in.th/public_html/mtb/forum/ext/mindphp/m_photo_tracing/controller/buy_photo.php on line 122
$email_template = 'newtopic_notify';
//if ($this->config['email_enable']) {
include_once($this->root_path . 'includes/functions_messenger.' . $this->php_ext);
$messenger = new \messenger(FALSE);
$messenger->template($email_template, $this->user['user_lang']);
print_r($messenger); exit;
$messenger->to($email, $username);
$messenger->anti_abuse_headers($this->config, $this->user);
$messenger->assign_vars(array(
//'WELCOME_MSG' => htmlspecialchars_decode(sprintf($this->user->lang['WELCOME_SUBJECT'], $this->config['sitename'])),
'USERNAME' => htmlspecialchars_decode($user_row['username']),
'PASSWORD' => htmlspecialchars_decode($user_password),
'U_ACTIVATE' => "$server_url/ucp.$phpEx?mode=activate&u={$user_id}&k=$user_actkey"
));
atal error: Cannot use object of type phpbb\user as array in /home/jobthai/domains/jobthai.in.th/public_html/mtb/forum/ext/mindphp/m_photo_tracing/controller/buy_photo.php on line 122
[quote]$email_template = 'newtopic_notify';
//if ($this->config['email_enable']) {
include_once($this->root_path . 'includes/functions_messenger.' . $this->php_ext);
$messenger = new \messenger(FALSE);
$messenger->template($email_template, $this->user['user_lang']);
print_r($messenger); exit;
$messenger->to($email, $username);
$messenger->anti_abuse_headers($this->config, $this->user);
$messenger->assign_vars(array(
//'WELCOME_MSG' => htmlspecialchars_decode(sprintf($this->user->lang['WELCOME_SUBJECT'], $this->config['sitename'])),
'USERNAME' => htmlspecialchars_decode($user_row['username']),
'PASSWORD' => htmlspecialchars_decode($user_password),
'U_ACTIVATE' => "$server_url/ucp.$phpEx?mode=activate&u={$user_id}&k=$user_actkey"
));[/quote]