override exiting query parameter 'action' when including js code

This commit is contained in:
Uwe Steinmann 2016-02-29 08:36:10 +01:00
parent fe9ac278c7
commit 62095c443b

View File

@ -141,8 +141,11 @@ $(document).ready(function () {
//]]>
</script>";
}
if(method_exists($this, 'js'))
echo '<script src="../out/out.'.$this->params['class'].'.php?action=js&'.$_SERVER['QUERY_STRING'].'"></script>'."\n";
if(method_exists($this, 'js')) {
parse_str($_SERVER['QUERY_STRING'], $tmp);
$tmp['action'] = 'js';
echo '<script src="../out/out.'.$this->params['class'].'.php?'.http_build_query($tmp).'"></script>'."\n";
}
echo "</body>\n</html>\n";
} /* }}} */