mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-11 20:21:16 +00:00
override exiting query parameter 'action' when including js code
This commit is contained in:
parent
fe9ac278c7
commit
62095c443b
|
@ -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";
|
||||
} /* }}} */
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user