Missing 'points subjects' and 'subject' added
authorRoland Häder <roland@mxchange.org>
Thu, 11 Aug 2011 13:41:21 +0000 (13:41 +0000)
committerRoland Häder <roland@mxchange.org>
Thu, 11 Aug 2011 13:41:21 +0000 (13:41 +0000)
inc/language/de.php
inc/modules/admin/what-add_points.php
inc/modules/admin/what-sub_points.php

index 2d418110c07a026d0d7e858913dba16f20cd201e..86d5bbf4175fbcdbe9ccada0bd13920a460237a4 100644 (file)
@@ -1172,6 +1172,13 @@ addMessages(array(
        // Admin 'pool' mail actions
        'ADMIN_EDIT_POOL_MAIL_LINK' => "Klick-Mail bearbeiten",
        'ADMIN_DELETE_POOL_MAIL_LINK' => "Klick-Mail l&ouml;schen",
+
+       // Generic points subjects
+       'POINTS_SUBJECT_UNKNOWN'      => "??? (%s)",
+       'POINTS_SUBJECT_ADMIN_ADD_ALL'    => "Gutschrift f&uuml;r alle durch den Administrator",
+       'POINTS_SUBJECT_ADMIN_ADD_SINGLE' => "Einzelgutschrift durch den Administrator",
+       'POINTS_SUBJECT_ADMIN_SUB_ALL'    => "Abzug aller Accounts durch den Administrator",
+       'POINTS_SUBJECT_ADMIN_SUB_SINGLE' => "Einzelabzug durch den Administrator",
 ));
 
 // Description of all months
index ef6c84659d95bca9b1dbb66380b448d7a6c7b90e..66d4d2aefc2c1fca382cd8f9a59996756e883202 100644 (file)
@@ -64,13 +64,14 @@ if (getRequestElement('userid') == 'all') {
                        $GLOBALS['ref_level'] = -1;
 
                        // Ok, add points and send an email to him...
-                       addPointsDirectly('admin_all', $content['userid'], bigintval(postRequestElement('points')));
+                       addPointsDirectly('admin_add_all', $content['userid'], bigintval(postRequestElement('points')));
 
                        // Prepare content
                        $content = array(
-                               'reason' => SQL_ESCAPE(postRequestElement('reason')),
-                               'points' => bigintval(postRequestElement('points')),
-                               'userid' => $row['userid']
+                               'reason'  => SQL_ESCAPE(postRequestElement('reason')),
+                               'points'  => bigintval(postRequestElement('points')),
+                               'userid'  => $row['userid'],
+                               'subject' => 'admin_add_all',
                        );
 
                        // Load email template and send email away
@@ -95,12 +96,13 @@ if (getRequestElement('userid') == 'all') {
 
                if ((isFormSent()) && (isPostRequestElementSet('points'))) {
                        // Add points and send an email to him...
-                       addPointsDirectly('admin_single', bigintval(getRequestElement('userid')), bigintval(postRequestElement('points')));
+                       addPointsDirectly('admin_add_single', bigintval(getRequestElement('userid')), bigintval(postRequestElement('points')));
 
                        // Prepare content
                        $content = array(
-                               'reason' => SQL_ESCAPE(postRequestElement('reason')),
-                               'points' => bigintval(postRequestElement('points'))
+                               'reason'  => SQL_ESCAPE(postRequestElement('reason')),
+                               'points'  => bigintval(postRequestElement('points')),
+                               'subject' => 'admin_add_single',
                        );
 
                        // Message laden
index 52da92ab38a6595d28bdb508b3ecb2b2c0e22e14..439e4a1e981ee1844a643689db9a93fae68f18c7 100644 (file)
@@ -57,12 +57,13 @@ if (getRequestElement('userid') == 'all') {
                        $content = merge_array($content, $row);
 
                        // Ok, add points to used points, send an email to him and ignore return status
-                       subtractPoints('admin_all', $content['userid'], postRequestElement('points'));
+                       subtractPoints('admin_sub_all', $content['userid'], postRequestElement('points'));
 
                        // Prepare content
                        $content = array(
-                               'reason' => SQL_ESCAPE(postRequestElement('reason')),
-                               'points' => bigintval(postRequestElement('points'))
+                               'reason'  => SQL_ESCAPE(postRequestElement('reason')),
+                               'points'  => bigintval(postRequestElement('points')),
+                               'subject' => 'admin_sub_all',
                        );
 
                        // Load message and send it away
@@ -87,12 +88,13 @@ if (getRequestElement('userid') == 'all') {
 
                if ((isFormSent()) && (isPostRequestElementSet('points'))) {
                        // Ok, add to used points, send an email to him and ignore return status
-                       subtractPoints('admin_single', bigintval(getRequestElement('userid')), postRequestElement('points'));
+                       subtractPoints('admin_sub_single', bigintval(getRequestElement('userid')), postRequestElement('points'));
 
                        // Prepare content
                        $content = array(
-                               'reason' => SQL_ESCAPE(postRequestElement('reason')),
-                               'points' => bigintval(postRequestElement('points'))
+                               'reason'  => SQL_ESCAPE(postRequestElement('reason')),
+                               'points'  => bigintval(postRequestElement('points')),
+                               'subject' => 'admin_sub_single',
                        );
 
                        // Load email and send it away