Skip to content

Commit

Permalink
Update sendemaillib.php
Browse files Browse the repository at this point in the history
Switched to using $admin_auth
  • Loading branch information
lwcorp authored Mar 8, 2024
1 parent a3b643c commit a5939c0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions public_html/lists/admin/sendemaillib.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ function output($text)

function sendEmail($messageid, $email, $hash, $htmlpref = 0, $rssitems = array(), $forwardedby = array())
{
global $admin_auth;
$getspeedstats = VERBOSE && !empty($GLOBALS['getspeedstats']) && isset($GLOBALS['processqueue_timer']);
$sqlCountStart = $GLOBALS['pagestats']['number_of_queries'];
$isTestMail = isset($_GET['page']) && $_GET['page'] == 'send';
Expand Down Expand Up @@ -895,8 +896,8 @@ function sendEmail($messageid, $email, $hash, $htmlpref = 0, $rssitems = array()
if (!empty($cached[$messageid]['replytoemail'])) {
$mail->AddReplyTo($cached[$messageid]['replytoemail'], $cached[$messageid]['replytoname']);
} elseif ($isTestMail) {
$testReplyAddress = Sql_Fetch_Row_Query(sprintf('select email from %s where id = %d', $GLOBALS['tables']['admin'], $_SESSION['logindetails']['id']))[0];
$testReplyName = adminName();
$testReplyAddress = $admin_auth->adminEmail($_SESSION['logindetails']['id']);
$testReplyName = $admin_auth->adminName($_SESSION['logindetails']['id']);
if (empty($testReplyAddress)) {
$testReplyAddress = getConfig('admin_address');
$testReplyName = '';
Expand Down Expand Up @@ -1640,3 +1641,4 @@ function precacheMessage($messageid, $forwardContent = 0)
$newpoweredimage,
70, 30));
}

0 comments on commit a5939c0

Please sign in to comment.