From d999908fdb7fdf8884356331e2ffe044cfff273d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Mon, 18 Feb 2008 20:38:48 +0000 Subject: [PATCH] script does now also regonize the difference between payout in withdraw in wernis extension --- inc/modules/member/what-wernis.php | 6 +++--- templates/de/html/admin/admin_config_wernis.tpl | 6 ++---- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/inc/modules/member/what-wernis.php b/inc/modules/member/what-wernis.php index 691c9d17fc..b1db3909b3 100644 --- a/inc/modules/member/what-wernis.php +++ b/inc/modules/member/what-wernis.php @@ -145,7 +145,7 @@ if ((!isset($_GET['mode'])) || ($_GET['mode'] == "choose")) { // Prepare data for the template $content['points'] = TRANSLATE_COMMA($points); - $content['min_points'] = TRANSLATE_COMMA($_CONFIG['wernis_min_payout']); + $content['min_points'] = TRANSLATE_COMMA($_CONFIG['wernis_min_withdraw']); $content['wds66_id'] = ""; // Get WDS66 id @@ -192,9 +192,9 @@ if ((isset($_POST['ok'])) && (isset($_GET['mode']))) { // Only numbers in amount! LOAD_TEMPLATE("admin_settings_saved", false, WERNIS_MEMBER_INVALID_AMOUNT); OUTPUT_HTML("
"); - } elseif ($_POST['amount'] < $_CONFIG['wernis_min_payout']) { + } elseif ($_POST['amount'] < $_CONFIG['wernis_min_widthdraw']) { // Not enougth entered! - LOAD_TEMPLATE("admin_settings_saved", false, sprintf(WERNIS_MEMBER_AMOUNT_SMALLER_MIN, bigintval($_CONFIG['wernis_min_payout']))); + LOAD_TEMPLATE("admin_settings_saved", false, sprintf(WERNIS_MEMBER_AMOUNT_SMALLER_MIN, bigintval($_CONFIG['wernis_min_withdraw']))); OUTPUT_HTML("
"); } else { // All is fine here so do the withdraw diff --git a/templates/de/html/admin/admin_config_wernis.tpl b/templates/de/html/admin/admin_config_wernis.tpl index b66a649826..65efaeccd5 100644 --- a/templates/de/html/admin/admin_config_wernis.tpl +++ b/templates/de/html/admin/admin_config_wernis.tpl @@ -1,7 +1,5 @@ -
- + +
-- 2.39.5
{--WERNIS_ADMIN_CONFIG_TITLE--}