mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 04:38:27 +01:00
Fixes #4801 - Remove whitespace from LAN definition (PM plugin)
This commit is contained in:
parent
f2f8877a05
commit
24f952a70a
@ -430,7 +430,7 @@ class private_message
|
||||
$text = e107::getParser()->simpleParse($PM_NOTIFY, $data);
|
||||
|
||||
$eml = array();
|
||||
$eml['email_subject'] = LAN_PM_100.USERNAME;
|
||||
$eml['email_subject'] = LAN_PM_100." ".USERNAME;
|
||||
$eml['send_html'] = true;
|
||||
$eml['email_body'] = $text;
|
||||
$eml['template'] = 'default';
|
||||
@ -457,13 +457,13 @@ class private_message
|
||||
function pm_send_receipt($pmInfo) //TODO Add Template and combine with method above..
|
||||
{
|
||||
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'];
|
||||
|
||||
$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_103.$pmInfo['pm_subject']."\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_103." ".$pmInfo['pm_subject']."\n";
|
||||
$txt .= LAN_PM_105."\n".$pmlink."\n";
|
||||
|
||||
if(sendemail($pmInfo['from_email'], $subject, $txt, $pmInfo['from_name']))
|
||||
|
Loading…
x
Reference in New Issue
Block a user