functions_routing.php: set action to empty when serving JS
genpage is called but no action given - the default page was generated at every call.
This commit is contained in:
@@ -132,6 +132,10 @@ function serveJS($js_mode) {
|
||||
header('Content-type: application/javascript; charset=' . LANG_CHARSET);
|
||||
|
||||
$out = "";
|
||||
// FIXFIX: including genpage without any given action will generate the
|
||||
// default page which is unneccessary, set action to empty to only make
|
||||
// the fix below
|
||||
$serendipity['GET']['action'] = 'empty';
|
||||
|
||||
include(S9Y_INCLUDE_PATH . 'include/genpage.inc.php');
|
||||
|
||||
|
Reference in New Issue
Block a user