From 0a3bca7dd8b178863586d16cf38d2c131ea314d5 Mon Sep 17 00:00:00 2001 From: rarjpg <57395050+rarjpg@users.noreply.github.com> Date: Tue, 5 Nov 2019 10:34:09 +0000 Subject: [PATCH] Various fixes --- .gitmodules | 2 +- inc/mod/pages.php | 2 +- js/thread-watcher.js | 2 +- search.php | 1 + 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitmodules b/.gitmodules index df07fdf3..565076dc 100644 --- a/.gitmodules +++ b/.gitmodules @@ -5,5 +5,5 @@ [submodule "inc/lib/parsedown"] path = inc/lib/parsedown - url = https://github.com/vichan-devel/parsedown + url = https://github.com/vichan-devel/parsedown.git branch = master diff --git a/inc/mod/pages.php b/inc/mod/pages.php index 4e2d6eaf..90180d0b 100644 --- a/inc/mod/pages.php +++ b/inc/mod/pages.php @@ -2752,7 +2752,7 @@ function mod_edit_page($id) { $fn = ($board['uri'] ? ($board['uri'] . '/') : '') . $page['name'] . '.html'; $body = "
$write
"; - $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); } diff --git a/js/thread-watcher.js b/js/thread-watcher.js index 169ff26c..09583950 100644 --- a/js/thread-watcher.js +++ b/js/thread-watcher.js @@ -149,7 +149,7 @@ $(document).ready(function(){ } //Append the watchlist toggle button. - $('.boardlist').append('[ '+_('watchlist')+' ]'); + $('.boardlist').append(' [ '+_('watchlist')+' ]'); //Append a watch thread button after every OP post number. $('.op>.intro>.post_no:odd').after('['+_('Watch Thread')+']'); diff --git a/search.php b/search.php index 394aa3ff..d9933df8 100644 --- a/search.php +++ b/search.php @@ -170,5 +170,6 @@ echo Element('page.html', Array( 'config'=>$config, 'title'=>_('Search'), + 'boardlist'=>createBoardlist(), 'body'=>'' . $body ));