Browse Source

Fix editing global pages for 7.4 (#487)

main
bebyx 2 years ago
committed by -
parent
commit
ffcc496a6f
  1. 2
      inc/mod/pages.php

2
inc/mod/pages.php

@ -3693,7 +3693,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);

Loading…
Cancel
Save