mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 05:07:27 +02:00
Update pm_class.php
This commit is contained in:
@@ -386,16 +386,13 @@ class private_message
|
|||||||
|
|
||||||
$template = $PM_NOTIFY;
|
$template = $PM_NOTIFY;
|
||||||
*/
|
*/
|
||||||
if(THEME_LEGACY){
|
if(THEME_LEGACY){include_once(THEME.'pm_template.php');}
|
||||||
include_once(THEME.'pm_template.php');
|
if (!$PM_NOTIFY){$PM_NOTIFY = e107::getTemplate('pm', 'pm', 'notify');}
|
||||||
$template = $PM_NOTIFY;
|
|
||||||
}
|
|
||||||
if (!$PM_NOTIFY){$template = e107::getTemplate('pm', 'pm', 'notify');}
|
|
||||||
|
|
||||||
if(empty($template)) // BC Fallback.
|
if(empty($PM_NOTIFY)) // BC Fallback.
|
||||||
{
|
{
|
||||||
|
|
||||||
$template =
|
$PM_NOTIFY =
|
||||||
"<div>
|
"<div>
|
||||||
<h4>".LAN_PM_101."{SITENAME}</h4>
|
<h4>".LAN_PM_101."{SITENAME}</h4>
|
||||||
<table class='table table-striped'>
|
<table class='table table-striped'>
|
||||||
@@ -422,7 +419,7 @@ class private_message
|
|||||||
$data['PM_URL'] = $url;// e107::url('pm','index', null, array('mode'=>'full')).'?show.'.$pmid;
|
$data['PM_URL'] = $url;// e107::url('pm','index', null, array('mode'=>'full')).'?show.'.$pmid;
|
||||||
$data['PM_BUTTON'] = "<a class='btn btn-primary' href='".$url."'>".LAN_PM_113."</a>";// e107::url('pm','index', null, array('mode'=>'full')).'?show.'.$pmid;
|
$data['PM_BUTTON'] = "<a class='btn btn-primary' href='".$url."'>".LAN_PM_113."</a>";// e107::url('pm','index', null, array('mode'=>'full')).'?show.'.$pmid;
|
||||||
|
|
||||||
$text = e107::getParser()->simpleParse($template, $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;
|
||||||
|
Reference in New Issue
Block a user