mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-03 21:15:42 +02:00
Ccouple minor fixes
git-svn-id: file:///svn/phpbb/trunk@959 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
a9afe47b2a
commit
c684df1d9b
@ -401,6 +401,7 @@ CREATE TABLE phpbb_topics (
|
|||||||
topic_status int2 DEFAULT '0' NOT NULL,
|
topic_status int2 DEFAULT '0' NOT NULL,
|
||||||
topic_type int2 DEFAULT '0' NOT NULL,
|
topic_type int2 DEFAULT '0' NOT NULL,
|
||||||
topic_notify int2 DEFAULT '0',
|
topic_notify int2 DEFAULT '0',
|
||||||
|
topic_moved_id int4,
|
||||||
topic_last_post_id int4 DEFAULT '0' NOT NULL,
|
topic_last_post_id int4 DEFAULT '0' NOT NULL,
|
||||||
CONSTRAINT phpbb_topics_pkey PRIMARY KEY (topic_id)
|
CONSTRAINT phpbb_topics_pkey PRIMARY KEY (topic_id)
|
||||||
);
|
);
|
||||||
|
@ -293,6 +293,7 @@ switch($mode)
|
|||||||
$sql_select = 'SELECT
|
$sql_select = 'SELECT
|
||||||
topic_title,
|
topic_title,
|
||||||
topic_poster,
|
topic_poster,
|
||||||
|
topic_status,
|
||||||
topic_time
|
topic_time
|
||||||
FROM '.
|
FROM '.
|
||||||
TOPICS_TABLE." WHERE
|
TOPICS_TABLE." WHERE
|
||||||
@ -304,6 +305,7 @@ switch($mode)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
$row = $db->sql_fetchrowset($result);
|
$row = $db->sql_fetchrowset($result);
|
||||||
|
|
||||||
$ttitle = $row[0]['topic_title'];
|
$ttitle = $row[0]['topic_title'];
|
||||||
$tpost = $row[0]['topic_poster'];
|
$tpost = $row[0]['topic_poster'];
|
||||||
$ttime = $row[0]['topic_time'];
|
$ttime = $row[0]['topic_time'];
|
||||||
@ -831,10 +833,15 @@ switch($mode)
|
|||||||
|
|
||||||
for($x = 0; $x < $total_topics; $x++)
|
for($x = 0; $x < $total_topics; $x++)
|
||||||
{
|
{
|
||||||
|
$topic_title = "";
|
||||||
if($topics[$x]['topic_status'] == TOPIC_LOCKED)
|
if($topics[$x]['topic_status'] == TOPIC_LOCKED)
|
||||||
{
|
{
|
||||||
$folder_image = "<img src=\"" . $images['folder_locked'] . "\" alt=\"Topic Locked\">";
|
$folder_image = "<img src=\"" . $images['folder_locked'] . "\" alt=\"Topic Locked\">";
|
||||||
}
|
}
|
||||||
|
else if($topics[$x]['topic_status'] == TOPIC_MOVED)
|
||||||
|
{
|
||||||
|
$topic_title = "<b>" . $lang['Topic_Moved'] . ":</b> ";
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$folder_image = "<img src=\"" . $images['folder'] . "\">";
|
$folder_image = "<img src=\"" . $images['folder'] . "\">";
|
||||||
@ -842,15 +849,13 @@ switch($mode)
|
|||||||
|
|
||||||
$topic_id = $topics[$x]['topic_id'];
|
$topic_id = $topics[$x]['topic_id'];
|
||||||
|
|
||||||
$topic_title = "";
|
|
||||||
|
|
||||||
if($topics[$x]['topic_type'] == POST_STICKY)
|
if($topics[$x]['topic_type'] == POST_STICKY)
|
||||||
{
|
{
|
||||||
$topic_title = $lang['Sticky'] . " ";
|
$topic_title = "<b>".$lang['Post_Sticky'] . ":</b> ";
|
||||||
}
|
}
|
||||||
else if($topics[$x]['topic_type'] == POST_ANNOUNCE)
|
else if($topics[$x]['topic_type'] == POST_ANNOUNCE)
|
||||||
{
|
{
|
||||||
$topic_title = $lang['Annoucement'] . " ";
|
$topic_title = "<b>" . $lang['Post_Announcement'] . ":</b> ";
|
||||||
}
|
}
|
||||||
|
|
||||||
$topic_title .= stripslashes($topics[$x]['topic_title']);
|
$topic_title .= stripslashes($topics[$x]['topic_title']);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user