Browse Source

Initialize missing post field

Resolves #108.
merge-requests/65/head
Trevor Slocum 3 years ago
parent
commit
b8603b717f
  1. 1
      inc/functions.php
  2. 3
      inc/html.php

1
inc/functions.php

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

3
inc/html.php

@ -478,6 +478,7 @@ EOF;
}
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";
$postingmode = "";
@ -536,7 +537,7 @@ EOF;
$body = <<<EOF
<body>
<div class="adminbar">
[<a href="catalog.html" style="text-decoration: underline;">Catalog</a>]
$cataloglink
[<a href="$managelink" style="text-decoration: underline;">Manage</a>]
</div>
<div class="logo">

Loading…
Cancel
Save