X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fextensions%2Fext-wernis.php;h=cce98ab27bdc79984b413c5b9af9d361f5d2ad99;hb=0e899620c7a065952d6787c236fb2b33ae337d6a;hp=e33f6ecc3febf87c7c9cf52d9c6f6f283f359aed;hpb=60494e212a67fe360bfbb481eb4928480a6f379b;p=mailer.git diff --git a/inc/extensions/ext-wernis.php b/inc/extensions/ext-wernis.php index e33f6ecc3f..cce98ab27b 100644 --- a/inc/extensions/ext-wernis.php +++ b/inc/extensions/ext-wernis.php @@ -62,7 +62,8 @@ wernis_type ENUM('IN','OUT') NOT NULL default 'OUT', KEY(userid), PRIMARY KEY(id) ) TYPE=MyISAM"; - $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD wernis_min_amount bigint(20) not null default '40000'"; + $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD wernis_min_payout bigint(20) not null default '40000'"; + $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD wernis_min_withdraw bigint(20) not null default '5000'"; $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD wernis_api_id bigint(20) not null default '0'"; $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD wernis_api_md5 varchar(32) not null default ''"; $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD wernis_api_url varchar(255) not null default 'http://www.wds66.com/api/'"; @@ -102,13 +103,14 @@ case "update": // Update an extension break; default: // Do stuff when extension is loaded - $DUMMY = LOAD_CONFIG("0"); - $_CONFIG['wernis_min_amount'] = $DUMMY['wernis_min_amount']; - $_CONFIG['wernis_api_id'] = $DUMMY['wernis_api_id']; - $_CONFIG['wernis_api_md5'] = $DUMMY['wernis_api_md5']; - $_CONFIG['wernis_api_url'] = $DUMMY['wernis_api_url']; - $_CONFIG['wernis_refid'] = $DUMMY['wernis_refid']; - unset($DUMMY); + $dummy = LOAD_CONFIG(); + $_CONFIG['wernis_min_payout'] = $dummy['wernis_min_payout']; + $_CONFIG['wernis_min_withdraw'] = $dummy['wernis_min_withdraw']; + $_CONFIG['wernis_api_id'] = $dummy['wernis_api_id']; + $_CONFIG['wernis_api_md5'] = $dummy['wernis_api_md5']; + $_CONFIG['wernis_api_url'] = $dummy['wernis_api_url']; + $_CONFIG['wernis_refid'] = $dummy['wernis_refid']; + unset($dummy); break; } // Language file prefix