X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fguest%2Fwhat-beg.php;h=6a224c3c0bbc815ba9ffda42fd9366e3bd4dc165;hb=3a60615e36f60612523966daf585ebe308a4f5cc;hp=413f0240099e178ee6802f371abb726003f986b8;hpb=a090e351c49fe021fb3064325694da03402332e0;p=mailer.git diff --git a/inc/modules/guest/what-beg.php b/inc/modules/guest/what-beg.php index 413f024009..6a224c3c0b 100644 --- a/inc/modules/guest/what-beg.php +++ b/inc/modules/guest/what-beg.php @@ -38,10 +38,10 @@ // Some security stuff... if (!defined('__SECURITY')) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php'; require($INC); } elseif ((!EXT_IS_ACTIVE('beg')) && (!IS_ADMIN())) { - addFatalMessage(__FILE__, __LINE__, getMessage('EXTENSION_PROBLEM_EXT_INACTIVE'), 'beg'); + addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('beg')); return; } @@ -49,8 +49,8 @@ if (!defined('__SECURITY')) { ADD_DESCR('guest', __FILE__); // Prepare constants -define('__BEG_POINTS' , TRANSLATE_COMMA(getConfig('beg_points'))); -define('__BEG_POINTS_MAX', TRANSLATE_COMMA(getConfig('beg_points_max'))); +define('__BEG_POINTS' , translateComma(getConfig('beg_points'))); +define('__BEG_POINTS_MAX', translateComma(getConfig('beg_points_max'))); if ($GLOBALS['refid'] > 0) { // Take referal ID from URL/Cookie define('__BEG_UID' , $GLOBALS['refid']); @@ -60,8 +60,8 @@ if ($GLOBALS['refid'] > 0) { } // Selection boxes are now the default -define('__BEG_TIMEOUT' , CREATE_FANCY_TIME(getConfig('beg_timeout'))); -define('__BEG_UID_TIMEOUT', CREATE_FANCY_TIME(getConfig('beg_uid_timeout'))); +define('__BEG_TIMEOUT' , createFancyTime(getConfig('beg_timeout'))); +define('__BEG_UID_TIMEOUT', createFancyTime(getConfig('beg_uid_timeout'))); // Load final template LOAD_TEMPLATE("guest_".substr(basename(__FILE__), 5, -4));