X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fmember%2Fwhat-beg.php;h=e9a2d6404b8a234815156f8acbc0fceeab6d2d58;hp=a48cd88338d5e74631fc0cf9bb37e7c4b3147162;hb=56156f6c4392510cdbe0eb4f2ccefc23b43e2672;hpb=6c763653e88b9d10627e651ca59c7201d4b7d62b diff --git a/inc/modules/member/what-beg.php b/inc/modules/member/what-beg.php index a48cd88338..e9a2d6404b 100644 --- a/inc/modules/member/what-beg.php +++ b/inc/modules/member/what-beg.php @@ -38,7 +38,7 @@ if (!defined('__SECURITY')) { } elseif (!IS_MEMBER()) { LOAD_URL("modules.php?module=index"); } elseif ((!EXT_IS_ACTIVE("beg")) && (!IS_ADMIN())) { - ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "beg"); + addFatalMessage(EXTENSION_PROBLEM_EXT_INACTIVE, "beg"); return; } @@ -72,18 +72,18 @@ if (empty($uid)) { $uid = $GLOBALS['userid']; $nickname = false; } // Prepare constants define('__BEG_UID' , $uid); define('__BEG_CLICKS' , $clicks); -define('__BEG_POINTS' , TRANSLATE_COMMA($_CONFIG['beg_points'])); -define('__BEG_POINTS_MAX', TRANSLATE_COMMA($_CONFIG['beg_points_max'])); +define('__BEG_POINTS' , TRANSLATE_COMMA(getConfig('beg_points'))); +define('__BEG_POINTS_MAX', TRANSLATE_COMMA(getConfig('beg_points_max'))); if (function_exists('CREATE_FANCY_TIME')) { - define('__BEG_TIMEOUT' , CREATE_FANCY_TIME($_CONFIG['beg_timeout'])); - define('__BEG_UID_TIMEOUT', CREATE_FANCY_TIME($_CONFIG['beg_uid_timeout'])); + define('__BEG_TIMEOUT' , CREATE_FANCY_TIME(getConfig('beg_timeout'))); + define('__BEG_UID_TIMEOUT', CREATE_FANCY_TIME(getConfig('beg_uid_timeout'))); } else { - define('__BEG_TIMEOUT ' , round($_CONFIG['beg_timeout'] / 60)." ".MINUTES); - define('__BEG_UID_TIMEOUT', round($_CONFIG['beg_uid_timeout'] / 60)." ".MINUTES); + define('__BEG_TIMEOUT ' , round(getConfig('beg_timeout') / 60)." ".MINUTES); + define('__BEG_UID_TIMEOUT', round(getConfig('beg_uid_timeout') / 60)." ".MINUTES); } // Load template