Thank you for your kind words! Here's the entire updated "update" function in the class module:
Code:
function update(&$class, $eventID, $paramsArray = array()) {
// BOF Send email to admin for 404 errors
$email_text = sprintf(EMAIL_PAGE_NOT_FOUND_CONTENT, $_SESSION['customers_host_address'], $_SESSION['customers_ip_address'], $_ENV['REQUEST_URI'])."\n\n";
$email_subject = EMAIL_PAGE_NOT_FOUND_SUBJECT;
$module = (SEND_404_ERRORS_EMAIL_ARCHIVE != '0') ? 'default' : 'no_archive';
$html_msg['EMAIL_SUBJECT'] = EMAIL_PAGE_NOT_FOUND_SUBJECT;
$html_msg['EMAIL_MESSAGE_HTML'] .= str_replace('\n','',$email_text);
zen_mail('', SEND_404_ERRORS_EMAILS_TO, $email_subject, $email_text, STORE_NAME, EMAIL_FROM, $html_msg, $module);
// EOF Send email to admin for 404 errors
}
Bookmarks