More rewrites of constants and fix for loading mass-included scripts by GET_DIR_AS_AR...
[mailer.git] / beg.php
diff --git a/beg.php b/beg.php
index 72148cbdb1e68d5cbef088f1a97809150542dcdf..ab2817211a5a5265c6ad2f70ceedad3260955746 100644 (file)
--- a/beg.php
+++ b/beg.php
@@ -52,7 +52,7 @@ require("inc/config.php");
 REDIRCT_ON_UNINSTALLED_EXTENSION("beg");
 
 // Is the script installed?
-if (isBooleanConstantAndTrue('mxchange_installed')) {
+if (isInstalled()) {
        // Check for userid
        if (REQUEST_ISSET_GET(('uid'))) {
                // Init variables
@@ -99,7 +99,7 @@ if (isBooleanConstantAndTrue('mxchange_installed')) {
                                $points = mt_rand((getConfig('beg_points') * 100000), (getConfig('beg_points_max') * 100000)) / 100000;
 
                                // Set nickname / userid for the template(s
-                               define('__BEG_UID'   , SQL_ESCAPE(REQUEST_GET('uid')));
+                               define('__BEG_UID'   , REQUEST_GET(('uid')));
                                define('__BEG_CLICKS', ($clicks + 1));
                                define('__BEG_BANNER', LOAD_TEMPLATE("beg_banner", true));
                                define('__BEG_POINTS', TRANSLATE_COMMA($points));