More language strings rewritten
[mailer.git] / inc / modules / member / what-bonus.php
index e405e625a30ed40721b2b7dc7d548ff6299a4433..60f6163b6561c8ccc573edc426e216183d37a5a8 100644 (file)
@@ -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";
 }