ミス修正
このコミットが含まれているのは:
コミット
c8a8ab930e
|
@ -139,6 +139,7 @@ function load_post($filepath) {
|
|||
$detail = load_postfile($filepath);
|
||||
$deleted = $detail['deleted'];
|
||||
$title = $detail['title'];
|
||||
$has_title = $title != '';
|
||||
$body_raw = $detail['body'];
|
||||
$attachment_id = $detail['attachment_id'];
|
||||
unset($detail);
|
||||
|
@ -178,7 +179,7 @@ function load_post($filepath) {
|
|||
|
||||
return array_merge(
|
||||
$metadata,
|
||||
compact('username', 'deleted', 'title', 'body', 'body_raw', 'attachments'),
|
||||
compact('username', 'deleted', 'title', 'has_title', 'body', 'body_raw', 'attachments'),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -8,6 +8,7 @@ function view_post($post, $options = []) {
|
|||
$has_bottom_items = $options['has_bottom_items'] ?? true;
|
||||
|
||||
$title = htmlspecialchars($post['title'] ?? '');
|
||||
$has_title = $post['has_title'] ?? false;
|
||||
$username = htmlspecialchars($post['username']);
|
||||
$userid = htmlspecialchars($post['userid']);
|
||||
$time = htmlspecialchars($post['time']);
|
||||
|
@ -58,7 +59,7 @@ function view_post($post, $options = []) {
|
|||
<?php if ($post['is_future'] ?? false): ?>
|
||||
<dt><strong>【予約投稿】</strong></dt>
|
||||
<?php endif; ?>
|
||||
<?php if (!$is_single && $title != ''): ?>
|
||||
<?php if (!$is_single && $has_title): ?>
|
||||
<dt>件名:<b><?= $title ?></b></dt>
|
||||
<?php endif; ?>
|
||||
<dt><?= $res_num > 0 ? "{$res_num} " : '' ?><?= $html_user ?> <?= $html_time ?></dt>
|
||||
|
|
読み込み中…
新しいイシューから参照