1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-16 20:41:27 +02:00

Removed global $pref.

This commit is contained in:
Cameron
2013-06-17 15:41:11 -07:00
parent 59047796d1
commit d10dbc443a

View File

@@ -60,10 +60,14 @@ class gsitemap_cron // include plugin-folder in the name.
function sendEmail() function sendEmail()
{ {
global $pref;
$adminEmail = e107::getPref('siteadminemail');
$adminName = e107::getPref('siteadmin');
require_once(e_HANDLER."mail.php"); require_once(e_HANDLER."mail.php");
$message = "Your Cron Job worked correctly. Sent at ".date("r")."."; $message = "Your Cron Job worked correctly. Sent at ".date("r").".";
sendemail($pref['siteadminemail'], "e107 - TEST Email Sent by cron.".date("r"), $message, $pref['siteadmin'],$pref['siteadminemail'], $pref['siteadmin']); sendemail($adminEmail, "e107 - Crong Test Email", $message, $adminName, $adminEmail, $adminName);
} }
} }