X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Flibs%2Fyoomedia_functions.php;h=9307272432fa2916a294906b7a56ce105dcfb871;hb=e6c2226d9fce4452118cf6fe68bab72e6623cc2e;hp=08334e4ef3e0604f3b9ea1cc96636b0451cee1b9;hpb=5bdeaf8b452206598b6c6cd4f941145b11a0eccc;p=mailer.git diff --git a/inc/libs/yoomedia_functions.php b/inc/libs/yoomedia_functions.php index 08334e4ef3..9307272432 100644 --- a/inc/libs/yoomedia_functions.php +++ b/inc/libs/yoomedia_functions.php @@ -39,8 +39,6 @@ if (!defined('__SECURITY')) { // Test if the extension settings did work function YOOMEDIA_TEST_CONFIG ($data) { - global $_CONFIG; - // Is this admin? if (!IS_ADMIN()) { // No admin! @@ -48,14 +46,14 @@ function YOOMEDIA_TEST_CONFIG ($data) { } // END - if // Transfer config data - $_CONFIG = merge_array($_CONFIG, $data); + mergeConfig($data); // Temporary allow maximum - $_CONFIG['yoomedia_tm_max_reload'] = 1000; - $_CONFIG['yoomedia_tm_min_wait'] = 0; - $_CONFIG['yoomedia_tm_clicks_remain'] = 10; - $_CONFIG['yoomedia_tm_min_pay'] = 0; - $_CONFIG['yoomedia_erotic_allowed'] = 1; + setConfigEntry('yoomedia_tm_max_reload' , 1000); + setConfigEntry('yoomedia_tm_min_wait' , 0); + setConfigEntry('yoomedia_tm_clicks_remain', 10); + setConfigEntry('yoomedia_tm_min_pay' , 0); + setConfigEntry('yoomedia_erotic_allowed' , 1); // Query the API with a test request without couting it // If zero reply comes back the data is invalid!