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)); });