Initialize missing post field

Resolves #108.
This commit is contained in:
Trevor Slocum 2020-08-11 06:09:11 -07:00
parent d705edda91
commit b8603b717f
2 changed files with 3 additions and 1 deletions

View File

@ -140,6 +140,7 @@ function newPost($parent = TINYIB_NEWTHREAD) {
'thumb_width' => '0', 'thumb_width' => '0',
'thumb_height' => '0', 'thumb_height' => '0',
'stickied' => '0', 'stickied' => '0',
'locked' => '0',
'moderated' => '1'); 'moderated' => '1');
} }

View File

@ -478,6 +478,7 @@ EOF;
} }
function buildPage($htmlposts, $parent, $pages = 0, $thispage = 0) { function buildPage($htmlposts, $parent, $pages = 0, $thispage = 0) {
$cataloglink = TINYIB_CATALOG ? '[<a href="catalog.html" style="text-decoration: underline;">Catalog</a>]' : '';
$managelink = basename($_SERVER['PHP_SELF']) . "?manage"; $managelink = basename($_SERVER['PHP_SELF']) . "?manage";
$postingmode = ""; $postingmode = "";
@ -536,7 +537,7 @@ EOF;
$body = <<<EOF $body = <<<EOF
<body> <body>
<div class="adminbar"> <div class="adminbar">
[<a href="catalog.html" style="text-decoration: underline;">Catalog</a>] $cataloglink
[<a href="$managelink" style="text-decoration: underline;">Manage</a>] [<a href="$managelink" style="text-decoration: underline;">Manage</a>]
</div> </div>
<div class="logo"> <div class="logo">