Rewrite of all mail templates with user data to new 'tag-like' functionality
[mailer.git] / inc / libs / admins_functions.php
index d9aa9f857581aca5b7d19f46769db8f49868489a..60a9d02731580fa7ce22c4984e9801c76427e021 100644 (file)
@@ -399,12 +399,12 @@ function FILTER_ADD_EXTRA_SQL_DATA ($add = '') {
 
 // Sends out mail to all administrators
 // IMPORTANT: Please use SEND_ADMIN_NOTIFCATION() for now!
-function sendAdminsEmails ($subj, $template, $content, $UID) {
+function sendAdminsEmails ($subj, $template, $content, $userid) {
        // Trim template name
        $template = trim($template);
 
        // Load email template
-       $message = loadEmailTemplate($template, $content, $UID);
+       $message = loadEmailTemplate($template, $content, $userid);
 
        // Check which admin shall receive this mail
        $result = SQL_QUERY_ESC("SELECT `admin_id` FROM `{?_MYSQL_PREFIX?}_admins_mails` WHERE `mail_template`='%s' ORDER BY `admin_id` ASC",
@@ -432,13 +432,13 @@ function sendAdminsEmails ($subj, $template, $content, $UID) {
                if ($adminId == '-1') {
                        if (isExtensionActive('events')) {
                                // Add line to user events
-                               EVENTS_ADD_LINE($subj, $message, $UID);
+                               EVENTS_ADD_LINE($subj, $message, $userid);
                        } else {
                                // Log error for debug
-                               logDebugMessage(__FUNCTION__, __LINE__, sprintf("Extension 'events' missing: tpl=%s,subj=%s,UID=%s",
+                               logDebugMessage(__FUNCTION__, __LINE__, sprintf("Extension 'events' missing: tpl=%s,subj=%s,userid=%s",
                                        $template,
                                        $subj,
-                                       $UID
+                                       $userid
                                ));
                        }
                } elseif ($adminId == '0') {