Function loadLanguageFile() does now support extensions
[mailer.git] / js.php
diff --git a/js.php b/js.php
index 6ec94157d83b4d8d7d1ee2b584b1e8a0670e31c9..cf93e394b3a119748102ea46dcd67d615cff1e4e 100644 (file)
--- a/js.php
+++ b/js.php
 // Load security stuff here
 require('inc/libs/security_functions.php');
 
-// Init "action" and "what"
-$GLOBALS['what']   = '';
-$GLOBALS['action'] = '';
-
 // This is a fake-CSS file loader, more a JavaScript loader...
 // This is in one way good and in one not. The whole reset part will be
 // by-passed even in this "faked" CSS mode. The bad news is that this makes all
@@ -65,7 +61,7 @@ if ((isInstalled()) && (REQUEST_ISSET_GET('tag'))) {
        loadIncludeOnce('inc/header.php');
 
        // Prepare include file for looking
-       $INC = sprintf("inc/js/tag-%s.php",
+       $INC = sprintf("inc/js/js-%s.php",
                REQUEST_GET('tag')
        );
 
@@ -73,7 +69,7 @@ if ((isInstalled()) && (REQUEST_ISSET_GET('tag'))) {
        if (isIncludeReadable($INC)) {
                // Include it
                loadIncludeOnce($INC);
-       } // END - if 
+       } // END - if
 
        // Load footer
        loadIncludeOnce('inc/footer.php');