]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-wernis.php
More EL used, this has fixed double calls of translateComma() in various places
[mailer.git] / inc / modules / member / what-wernis.php
index 8cf42616a4a6c35ebc5bb1c3a6c77107ce2be463..108be32022b2b27605a2f4f40e9801dc7fdec047 100644 (file)
@@ -14,8 +14,6 @@
  * $Date::                                                            $ *
  * $Tag:: 0.2.1-FINAL                                                 $ *
  * $Author::                                                          $ *
- * Needs to be in all Files and every File needs "svn propset           *
- * svn:keywords Date Revision" (autoprobset!) at least!!!!!!            *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
  * Copyright (c) 2009, 2010 by Mailer Developer Team                    *
@@ -66,7 +64,6 @@ $content = array(); $points = false;
 // Is the mode set (withdraw or payout)
 if ((!isGetRequestParameterSet('mode')) || (getRequestParameter('mode') == 'choose')) {
        // Let the user choose what he wants to do
-       $content['refid']    = getConfig(('wernis_refid'));
        $content['wernis_userid'] = '0';
 
        // Is there an id?
@@ -125,11 +122,7 @@ if ((!isGetRequestParameterSet('mode')) || (getRequestParameter('mode') == 'choo
        // Is this enougth for a payout?
        if ($points < getConfig('wernis_min_payout')) {
                // No, then abort here
-               loadTemplate('admin_settings_saved', false, sprintf(
-                       getMessage('MEMBER_WERNIS_MIN_PAYOUT'),
-                       translateComma(getConfig('wernis_min_payout')),
-                       translateComma($points)
-               ));
+               loadTemplate('admin_settings_saved', false, '{%message,MEMBER_WERNIS_MIN_PAYOUT=' . $points . '%}');
                return;
        } // END - if
 
@@ -139,9 +132,6 @@ if ((!isGetRequestParameterSet('mode')) || (getRequestParameter('mode') == 'choo
 
        // Add points to content array
        $content['points']     = $points;
-
-       // Get WDS66 username
-       $content['wernis_userid'] = getUserData('wernis_userid');
 } elseif ((getRequestParameter('mode') == 'withdraw') && (getConfig('wernis_withdraw_active') == 'Y')) {
        // Prepare data for the template
        $content['points']        = getTotalPoints(getMemberId());