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

Various fixes

This commit is contained in:
rarjpg 2019-11-05 10:34:09 +00:00 committed by Fredrick Brennan
parent 1613f6baea
commit 0a3bca7dd8
4 changed files with 4 additions and 3 deletions

2
.gitmodules vendored
View File

@ -5,5 +5,5 @@
[submodule "inc/lib/parsedown"] [submodule "inc/lib/parsedown"]
path = inc/lib/parsedown path = inc/lib/parsedown
url = https://github.com/vichan-devel/parsedown url = https://github.com/vichan-devel/parsedown.git
branch = master branch = master

View File

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

View File

@ -170,5 +170,6 @@
echo Element('page.html', Array( echo Element('page.html', Array(
'config'=>$config, 'config'=>$config,
'title'=>_('Search'), 'title'=>_('Search'),
'boardlist'=>createBoardlist(),
'body'=>'' . $body 'body'=>'' . $body
)); ));