X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=inline;f=inc%2Fmodules%2Fadmin%2Fwhat-list_yoomedia_tm.php;h=019b6b82daeb0c16493e7eefcb72e4e891f4123c;hb=4e828541f3977c085ef54d3490b3e0069eb09a06;hp=91150db8f6debecefaa287d9a32817fdf386dd2d;hpb=d8ea3f0c194e43805e03801c2edf8a56d25113df;p=mailer.git
diff --git a/inc/modules/admin/what-list_yoomedia_tm.php b/inc/modules/admin/what-list_yoomedia_tm.php
index 91150db8f6..019b6b82da 100644
--- a/inc/modules/admin/what-list_yoomedia_tm.php
+++ b/inc/modules/admin/what-list_yoomedia_tm.php
@@ -35,10 +35,10 @@ if ((!defined('__SECURITY')) || (!IS_ADMIN())) {
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php";
require($INC);
} elseif (!EXT_IS_ACTIVE("yoomedia")) {
- ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "yoomedia");
+ addFatalMessage(getMessage('EXTENSION_PROBLEM_EXT_INACTIVE'), "yoomedia");
return;
} elseif (!EXT_IS_ACTIVE("bonus")) {
- ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "bonus");
+ addFatalMessage(getMessage('EXTENSION_PROBLEM_EXT_INACTIVE'), "bonus");
return;
}
@@ -62,9 +62,9 @@ if (isset($_POST['ok'])) {
}
// Enougth queries left?
-if ($_CONFIG['yoomedia_requests_remain'] == 0) {
+if (getConfig('yoomedia_requests_remain') == 0) {
// Output message
- LOAD_TEMPLATE("admin_settings_saved", false, ADMIN_YOOMEDIA_REQUESTS_DEPLETED);
+ LOAD_TEMPLATE("admin_settings_saved", false, getMessage('ADMIN_YOOMEDIA_REQUESTS_DEPLETED'));
// Abort here!
return false;
@@ -76,13 +76,13 @@ $result = YOOMEDIA_GET_PARSED_RESULT_TEXTMAILS();
// Sanity-check on result array
if ((!is_array($result)) || (count($result) == 0) || (!isset($result[0]['id']))) {
// Invalid result
- LOAD_TEMPLATE("admin_settings_saved", false, ADMIN_YOOMEDIA_INVALID_RESULT);
+ LOAD_TEMPLATE("admin_settings_saved", false, getMessage('ADMIN_YOOMEDIA_INVALID_RESULT'));
return false;
} elseif (count($result[0]) < 7) {
// Error received so prepare error code
$code = explode(" ", $result[0]['id']);
$code = $code[0];
- $code = explode("
", $code);
+ $code = explode("
", $code);
$code = $code[0];
// Output message
@@ -90,14 +90,11 @@ if ((!is_array($result)) || (count($result) == 0) || (!isset($result[0]['id'])))
return false;
}
-// Temporary set max comma
-$_CONFIG['max_comma'] = 5;
-
// Prepare all entries
$OUT = ""; $SW = 2;
foreach ($result as $entry) {
// Translate some data
- $entry['pay'] = TRANSLATE_COMMA($entry['pay']);
+ $entry['pay'] = TRANSLATE_COMMA($entry['pay'], true, 5);
$entry['remain'] = TRANSLATE_COMMA($entry['remain']);
$entry['sw'] = $SW;