X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fmember%2Fwhat-bonus.php;h=60f6163b6561c8ccc573edc426e216183d37a5a8;hp=e405e625a30ed40721b2b7dc7d548ff6299a4433;hb=77cdaff2afb97ed32985ced906a3a95ee078c2ef;hpb=1fe7cf281be6832ba105934537aba5127892c576 diff --git a/inc/modules/member/what-bonus.php b/inc/modules/member/what-bonus.php index e405e625a3..60f6163b65 100644 --- a/inc/modules/member/what-bonus.php +++ b/inc/modules/member/what-bonus.php @@ -38,16 +38,16 @@ if (!defined('__SECURITY')) { } elseif (!IS_MEMBER()) { LOAD_URL("modules.php[5~?module=index"); } elseif ((!EXT_IS_ACTIVE("bonus")) && (!IS_ADMIN())) { - addFatalMessage(EXTENSION_PROBLEM_EXT_INACTIVE, "bonus"); + addFatalMessage(getMessage('EXTENSION_PROBLEM_EXT_INACTIVE'), "bonus"); return; } // Add description as navigation point ADD_DESCR("member", __FILE__); -if (GET_EXT_VERSION("bonus") >= "0.6.9") -{ +if (GET_EXT_VERSION("bonus") >= "0.6.9") { // Add more bonus points here + // @TODO Rewrite this to a filter $USE = "(0"; if (getConfig('bonus_click_yn') == "Y") $USE .= " + turbo_bonus"; if (getConfig('bonus_login_yn') == "Y") $USE .= " + login_bonus"; @@ -55,9 +55,7 @@ if (GET_EXT_VERSION("bonus") >= "0.6.9") if (getConfig('bonus_stats_yn') == "Y") $USE .= " + bonus_stats"; if (getConfig('bonus_ref_yn') == "Y") $USE .= " + bonus_ref"; $USE .= ")"; -} - else -{ +} else { // Old version ??? $USE = "turbo_bonus"; }