From 0d4199a23021f4033c66f4c6a22e2654eb4b5c2e Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Wed, 22 Aug 2007 12:57:44 +0000 Subject: Fix itjs paths with parameters (e.g. language override on poi popups) --- it_html.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'it_html.class') diff --git a/it_html.class b/it_html.class index 034d288..0375891 100644 --- a/it_html.class +++ b/it_html.class @@ -505,7 +505,7 @@ function head($args = array()) $checksum = itjs::checksum(itjs::filenames($p['js'])); $js .= $this->_itjs("boot.js", "inline"); $js .= "function it_boot_start(){ " . trim($p['jsboot']) . " }\n"; - $js .= "it_boot('/itjs/" . $p['js'] . "?s=$checksum');\n"; + $js .= "it_boot('/itjs/" . $p['js'] . (strpos($p['js'], "?") ? "&" : "?") . "s=$checksum');\n"; } $js .= $this->_itjs($p['jsinline'], 'inline'); -- cgit v1.2.3