mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-26 20:08:55 +00:00
include functions_admin to use the add_log function
git-svn-id: file:///svn/phpbb/trunk@4218 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
e0b7709ae1
commit
a4d72b8f1f
1 changed files with 1 additions and 0 deletions
|
@ -261,6 +261,7 @@ class emailer
|
||||||
if (!$result)
|
if (!$result)
|
||||||
{
|
{
|
||||||
$message = '<u>EMAIL ERROR</u> [ ' . (($config['smtp_delivery']) ? 'SMTP' : 'PHP') . ' ]<br /><br />' . $err_msg . '<br /><br /><u>CALLING PAGE</u><br /><br />' . ((!empty($_SERVER['PHP_SELF'])) ? $_SERVER['PHP_SELF'] : $_ENV['PHP_SELF']) . '<br />';
|
$message = '<u>EMAIL ERROR</u> [ ' . (($config['smtp_delivery']) ? 'SMTP' : 'PHP') . ' ]<br /><br />' . $err_msg . '<br /><br /><u>CALLING PAGE</u><br /><br />' . ((!empty($_SERVER['PHP_SELF'])) ? $_SERVER['PHP_SELF'] : $_ENV['PHP_SELF']) . '<br />';
|
||||||
|
@include_once($phpbb_root_path . 'includes/functions_admin.'.$phpEx);
|
||||||
add_log('critical', 'EMAIL_ERROR', $message);
|
add_log('critical', 'EMAIL_ERROR', $message);
|
||||||
trigger_error($message, E_USER_ERROR);
|
trigger_error($message, E_USER_ERROR);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue