A lot while() conditions rewritten to SQL_FETCHARRAY(), see bug #107, @TODO tags...
[mailer.git] / js.php
diff --git a/js.php b/js.php
index ebbdbd789e2464e6520a031e1f5c274a7b84f919..ec46e60e499120e90d8cf3eda625062b27b1a01f 100644 (file)
--- a/js.php
+++ b/js.php
@@ -55,7 +55,7 @@ $GLOBALS['module'] = "js";
 require("inc/config.php");
 
 // Is this script installed and a JavaScript tag is provied?
-if ((isBooleanConstantAndTrue('mxchange_installed')) && (isset($_GET['tag']))) {
+if ((isInstalled()) && (REQUEST_ISSET_GET(('tag')))) {
        // Set header
        header("Content-type: text/javascript");
 
@@ -64,7 +64,7 @@ if ((isBooleanConstantAndTrue('mxchange_installed')) && (isset($_GET['tag']))) {
 
        // Prepare include file for looking
        $INC = sprintf("inc/js/tag-%s.php",
-               SQL_ESCAPE($_GET['tag'])
+               REQUEST_GET(('tag'))
        );
 
        // Is that file readable?