このコミットが含まれているのは:
たかし 2023-12-11 11:39:20 +00:00
コミット 86ae51b44d
2個のファイルの変更5行の追加2行の削除

ファイルの表示

@ -102,7 +102,7 @@ function get_post_metadata($file, $deleted = false) {
$thread_title = load_post_title_by_id($thread_id);
}
if ($thread_id != '' && $thread_title != '') {
if ($thread_id != '' && $thread_title == '') {
$thread_title = '無題#' . mb_substr($thread_id, 0, 7);
}
@ -554,7 +554,7 @@ function load_post_title_by_id($id) {
if (isset($post_title_cache[$id])) { return $post_title_cache[$id]; }
$files = glob(POST_DIR . '2*Z*.id' . $id . '.*.txt');
if (sizeof($files) !== 1) {
if (sizeof($files) != 1) {
$files = null;
$post_title_cache[$id] = '';
return '';

ファイルの表示

@ -62,6 +62,9 @@ function view_post($post, $options = []) {
<dt>件名:<b><?= $title ?></b></dt>
<?php endif; ?>
<dt><?= $res_num > 0 ? "{$res_num} " : '' ?><?= $html_user ?> <?= $html_time ?></dt>
<?php if ($link_to_thread && $thread_id > ''): ?>
<dd>RE: <a href="<?= $thread_url ?>"><?= $thread_title ?></a></dd>
<?php endif; ?>
<dd><?= $body ?>
<?php if (ENABLE_ATTACHMENT && $html_attachment_items != ''): ?>
<?= PHP_EOL ?>