1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-11-22 04:23:01 +00:00

bugfix: fix reference to tags in action-raw

This commit is contained in:
Starbeamrainbowlabs 2022-06-30 01:42:52 +01:00
parent ec340d18a9
commit 9bc1380a7b
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -49,8 +49,10 @@ register_module([
header("content-type: text/markdown"); header("content-type: text/markdown");
header("content-disposition: inline"); header("content-disposition: inline");
header("content-length: " . filesize($env->page_filename)); header("content-length: " . filesize($env->page_filename));
header("x-tags: " . str_replace(["\n", ":"], "", $pageindex->$page->tags)); header("x-tags: " . str_replace(
["\n", ":"], "",
$pageindex->{$env->page}->tags
));
exit(file_get_contents($env->page_filename)); exit(file_get_contents($env->page_filename));
}); });