]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-sub_points.php
Extension ext-network continued, "translation" function introduced:
[mailer.git] / inc / modules / admin / what-sub_points.php
index bbbee2a2e1423552b689c2e6680ee9a44b0b951e..439e4a1e981ee1844a643689db9a93fae68f18c7 100644 (file)
@@ -17,7 +17,7 @@
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
  * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
- * For more information visit: http://www.mxchange.org                  *
+ * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
  * it under the terms of the GNU General Public License as published by *
@@ -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