Fix the title for the edit page

This commit is contained in:
Jacob 2024-01-14 13:02:19 -05:00
parent 2b81a0dc19
commit 81d458f0b7

View file

@ -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']));