Project

General

Profile

« Previous | Next » 

Revision 27

Added by Manuela over 6 years ago

output_filter::ScriptVars: output of JS cleaned

View differences:

filterScriptVars.php
13 13
                  $scriptLink .= "\t".'<script src="'.WB_URL.'/include/jquery/domReady.js" type="text/javascript"></script>'."\n";
14 14
            }
15 15
            if (!preg_match('/<head.*<.*var WB_URL.*<\/head/siU', $content) ) {
16
                  $scriptLink .= "\t"."<script type=\"text/javascript\">\n"
17
                              ."\t\t"."<!--\n"
16
                  $scriptLink .= "\n\t"."<script type=\"text/javascript\">\n"
18 17
                              ."\t\t"."var URL = '".WB_URL."';\n"
19 18
                              ."\t\t"."var WB_URL = '".WB_URL."';\n"
20 19
                              ."\t\t"."var THEME_URL = '".THEME_URL."';\n"
21 20
                              ."\t\t"."var TEMPLATE_DIR = '".TEMPLATE_DIR."';\n"
22 21
                              ."\t\t"."var TEMPLATE = '".TEMPLATE."';\n"
23 22
                              ."\t\t"."var EDITOR = '".WYSIWYG_EDITOR."';\n"
24
                              ."\t\t"."-->\n"
25 23
                              ."\t"."</script>\n";
26 24
            }
27 25
            if ($scriptLink!='') {

Also available in: Unified diff