Charset fixed for SeCash, TODOs.txt updated, deprecated template removed
[mailer.git] / js.php
diff --git a/js.php b/js.php
index 3ddaf80a471ad83b3b40f6235b382a345101649c..b12d5270ed4816cb59f2d1816834544625cbe672 100644 (file)
--- a/js.php
+++ b/js.php
@@ -55,17 +55,17 @@ $GLOBALS['module'] = 'js';
 // Load the required file(s)
 require('inc/config-global.php');
 
-// Is 'js' is provied?
-if (isGetRequestElementSet('js')) {
-       // Set header
-       setContentType('text/javascript');
+// Set header
+setContentType('text/javascript');
 
+// Is 'js' is provied?
+if (isGetRequestParameterSet('js')) {
        // Load header
        loadIncludeOnce('inc/header.php');
 
        // Prepare include file for looking
        $inc = sprintf("inc/js/js-%s.php",
-               getRequestElement('js')
+               getRequestParameter('js')
        );
 
        // Is that file readable?