From b8603b717fe5a3f69936f0f66ff2647f9cfb3d6b Mon Sep 17 00:00:00 2001 From: Trevor Slocum Date: Tue, 11 Aug 2020 06:09:11 -0700 Subject: [PATCH] Initialize missing post field Resolves #108. --- inc/functions.php | 1 + inc/html.php | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/inc/functions.php b/inc/functions.php index d948560..6a582f5 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -140,6 +140,7 @@ function newPost($parent = TINYIB_NEWTHREAD) { 'thumb_width' => '0', 'thumb_height' => '0', 'stickied' => '0', + 'locked' => '0', 'moderated' => '1'); } diff --git a/inc/html.php b/inc/html.php index 1a9cdc8..4a60513 100644 --- a/inc/html.php +++ b/inc/html.php @@ -478,6 +478,7 @@ EOF; } function buildPage($htmlposts, $parent, $pages = 0, $thispage = 0) { + $cataloglink = TINYIB_CATALOG ? '[Catalog]' : ''; $managelink = basename($_SERVER['PHP_SELF']) . "?manage"; $postingmode = ""; @@ -536,7 +537,7 @@ EOF; $body = <<
- [Catalog] + $cataloglink [Manage]