From 81d458f0b76ee159d026ede7ec2e2179e681ac12 Mon Sep 17 00:00:00 2001 From: speedie Date: Sun, 14 Jan 2024 13:02:19 -0500 Subject: [PATCH] Fix the title for the edit page --- core.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core.php b/core.php index 82247f9..7b42ed5 100755 --- a/core.php +++ b/core.php @@ -261,10 +261,13 @@ function printHeader($html, $printpage) { $wasFound = 0; $i = 0; + $title = $instanceName; + $description = $instanceDescription; + $subdir = isset($_GET['endpoint']) ? $_GET['endpoint'] : '/'; while ($line = $DatabaseQuery->fetchArray()) { $endpoint = $line['endpoint']; - if ((($endpoint == $subdir || "$endpoint/" == "$subdir") && $id == -1) || ($id != -1 && $i == $id)) { + if (((($endpoint == $subdir || "$endpoint/" == "$subdir") && $id == -1) || ($id != -1 && $i == $id)) && $printpage == 1) { $wasFound = 1; $ret = convertMarkdownToHTML(file_get_contents($line['file']));