From 9bc1380a7babca67957629e83853271c0413f966 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Thu, 30 Jun 2022 01:42:52 +0100 Subject: [PATCH] bugfix: fix reference to tags in action-raw --- modules/action-raw.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/action-raw.php b/modules/action-raw.php index 6e43c22..88d2d19 100644 --- a/modules/action-raw.php +++ b/modules/action-raw.php @@ -49,8 +49,10 @@ register_module([ header("content-type: text/markdown"); header("content-disposition: inline"); 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)); });