]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/yoomedia_functions.php
Last references to now replaced with mergeConfig()
[mailer.git] / inc / libs / yoomedia_functions.php
index 08334e4ef3e0604f3b9ea1cc96636b0451cee1b9..9307272432fa2916a294906b7a56ce105dcfb871 100644 (file)
@@ -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!