mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-13 21:21:27 +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>";
|
</script>";
|
||||||
}
|
}
|
||||||
if(method_exists($this, 'js'))
|
if(method_exists($this, 'js')) {
|
||||||
echo '<script src="../out/out.'.$this->params['class'].'.php?action=js&'.$_SERVER['QUERY_STRING'].'"></script>'."\n";
|
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";
|
echo "</body>\n</html>\n";
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user