mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 22:03:49 -07:00
Update viewtopic.php
This commit is contained in:
parent
a30191dc3a
commit
9cff1d7758
1 changed files with 3 additions and 3 deletions
|
@ -111,6 +111,7 @@ if (!$t_data = DB()->fetch_row($sql)) {
|
||||||
$forum_topic_data =& $t_data;
|
$forum_topic_data =& $t_data;
|
||||||
$topic_id = $t_data['topic_id'];
|
$topic_id = $t_data['topic_id'];
|
||||||
$forum_id = $t_data['forum_id'];
|
$forum_id = $t_data['forum_id'];
|
||||||
|
$parent_id = $t_data['forum_parent'] ?? null;
|
||||||
$topic_attachment = isset($t_data['topic_attachment']) ? (int)$t_data['topic_attachment'] : null;
|
$topic_attachment = isset($t_data['topic_attachment']) ? (int)$t_data['topic_attachment'] : null;
|
||||||
|
|
||||||
// Allow robots indexing
|
// Allow robots indexing
|
||||||
|
@ -178,7 +179,6 @@ if (!$is_auth['auth_read']) {
|
||||||
|
|
||||||
$forum_name = $t_data['forum_name'];
|
$forum_name = $t_data['forum_name'];
|
||||||
$topic_title = $t_data['topic_title'];
|
$topic_title = $t_data['topic_title'];
|
||||||
$topic_id = $t_data['topic_id'];
|
|
||||||
$topic_time = $t_data['topic_time'];
|
$topic_time = $t_data['topic_time'];
|
||||||
$locked = ($t_data['forum_status'] == FORUM_LOCKED || $t_data['topic_status'] == TOPIC_LOCKED);
|
$locked = ($t_data['forum_status'] == FORUM_LOCKED || $t_data['topic_status'] == TOPIC_LOCKED);
|
||||||
|
|
||||||
|
@ -219,8 +219,8 @@ if (!$forums = $datastore->get('cat_forums') and !$datastore->has('cat_forums'))
|
||||||
$template->assign_vars([
|
$template->assign_vars([
|
||||||
'CAT_TITLE' => $forums['cat_title_html'][$t_data['cat_id']],
|
'CAT_TITLE' => $forums['cat_title_html'][$t_data['cat_id']],
|
||||||
'U_VIEWCAT' => CAT_URL . $t_data['cat_id'],
|
'U_VIEWCAT' => CAT_URL . $t_data['cat_id'],
|
||||||
'PARENT_FORUM_HREF' => ($parent_id = $t_data['forum_parent']) ? FORUM_URL . $parent_id : '',
|
'PARENT_FORUM_HREF' => is_numeric($parent_id) ? FORUM_URL . $parent_id : '',
|
||||||
'PARENT_FORUM_NAME' => ($parent_id = $t_data['forum_parent']) ? htmlCHR($forums['f'][$parent_id]['forum_name']) : '',
|
'PARENT_FORUM_NAME' => is_numeric($parent_id) ? htmlCHR($forums['f'][$parent_id]['forum_name']) : '',
|
||||||
]);
|
]);
|
||||||
unset($forums);
|
unset($forums);
|
||||||
$datastore->rm('cat_forums');
|
$datastore->rm('cat_forums');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue