mirror of
https://github.com/e107inc/e107.git
synced 2025-07-12 18:46:20 +02:00
Fixes #4801 - Remove whitespace from LAN definition (PM plugin)
This commit is contained in:
@ -430,7 +430,7 @@ class private_message
|
|||||||
$text = e107::getParser()->simpleParse($PM_NOTIFY, $data);
|
$text = e107::getParser()->simpleParse($PM_NOTIFY, $data);
|
||||||
|
|
||||||
$eml = array();
|
$eml = array();
|
||||||
$eml['email_subject'] = LAN_PM_100.USERNAME;
|
$eml['email_subject'] = LAN_PM_100." ".USERNAME;
|
||||||
$eml['send_html'] = true;
|
$eml['send_html'] = true;
|
||||||
$eml['email_body'] = $text;
|
$eml['email_body'] = $text;
|
||||||
$eml['template'] = 'default';
|
$eml['template'] = 'default';
|
||||||
@ -457,13 +457,13 @@ class private_message
|
|||||||
function pm_send_receipt($pmInfo) //TODO Add Template and combine with method above..
|
function pm_send_receipt($pmInfo) //TODO Add Template and combine with method above..
|
||||||
{
|
{
|
||||||
require_once(e_HANDLER.'mail.php');
|
require_once(e_HANDLER.'mail.php');
|
||||||
$subject = LAN_PM_106.$pmInfo['sent_name'];
|
$subject = LAN_PM_106." ".$pmInfo['sent_name'];
|
||||||
|
|
||||||
$pmlink = e107::url('pm','index', null, array('mode'=>'full')).'?show.'.$pmInfo['pm_id'];
|
$pmlink = e107::url('pm','index', null, array('mode'=>'full')).'?show.'.$pmInfo['pm_id'];
|
||||||
|
|
||||||
$txt = str_replace("{UNAME}", $pmInfo['sent_name'], LAN_PM_107).date('l F dS Y h:i:s A')."\n\n";
|
$txt = str_replace("{UNAME}", $pmInfo['sent_name'], LAN_PM_107)." ".date('l F dS Y h:i:s A')."\n\n";
|
||||||
$txt .= LAN_PM_108.date('l F dS Y h:i:s A', $pmInfo['pm_sent'])."\n";
|
$txt .= LAN_PM_108." ".date('l F dS Y h:i:s A', $pmInfo['pm_sent'])."\n";
|
||||||
$txt .= LAN_PM_103.$pmInfo['pm_subject']."\n";
|
$txt .= LAN_PM_103." ".$pmInfo['pm_subject']."\n";
|
||||||
$txt .= LAN_PM_105."\n".$pmlink."\n";
|
$txt .= LAN_PM_105."\n".$pmlink."\n";
|
||||||
|
|
||||||
if(sendemail($pmInfo['from_email'], $subject, $txt, $pmInfo['from_name']))
|
if(sendemail($pmInfo['from_email'], $subject, $txt, $pmInfo['from_name']))
|
||||||
|
Reference in New Issue
Block a user