Method extensionVersionMatches() is now cached in
[mailer.git] / js.php
diff --git a/js.php b/js.php
index 3ddaf80a471ad83b3b40f6235b382a345101649c..b1d8ce6118892617ef9b17b886db5b32fd55c183 100644 (file)
--- a/js.php
+++ b/js.php
@@ -18,6 +18,7 @@
  * svn:keywords Date Revision" (autoprobset!) at least!!!!!!            *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
+ * Copyright (c) 2009, 2010 by Mailer Developer Team                    *
  * For more information visit: http://www.mxchange.org                  *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -55,17 +56,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?