1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-28 01:10:51 +01:00

Fix editing global pages for 7.4 (#487)

This commit is contained in:
bebyx 2022-08-20 19:17:04 +03:00 committed by GitHub
parent 23ebde7883
commit c128a37160
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2800,7 +2800,7 @@ function mod_edit_page($id) {
$query->bindValue(':id', $id);
$query->execute() or error(db_error($query));
$fn = ($board['uri'] ? ($board['uri'] . '/') : '') . $page['name'] . '.html';
$fn = (isset($board['uri']) ? ($board['uri'] . '/') : '') . $page['name'] . '.html';
$body = "<div class='ban'>$write</div>";
$html = Element('page.html', array('config' => $config, 'boardlist' => createBoardlist(), 'body' => $body, 'title' => utf8tohtml($page['title'])));
file_write($fn, $html);