1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-06-02 12:34:59 +02:00

Ccouple minor fixes

git-svn-id: file:///svn/phpbb/trunk@959 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
James Atkinson 2001-08-31 22:00:44 +00:00
parent a9afe47b2a
commit c684df1d9b
2 changed files with 10 additions and 4 deletions

View File

@ -401,6 +401,7 @@ CREATE TABLE phpbb_topics (
topic_status int2 DEFAULT '0' NOT NULL,
topic_type int2 DEFAULT '0' NOT NULL,
topic_notify int2 DEFAULT '0',
topic_moved_id int4,
topic_last_post_id int4 DEFAULT '0' NOT NULL,
CONSTRAINT phpbb_topics_pkey PRIMARY KEY (topic_id)
);

View File

@ -293,6 +293,7 @@ switch($mode)
$sql_select = 'SELECT
topic_title,
topic_poster,
topic_status,
topic_time
FROM '.
TOPICS_TABLE." WHERE
@ -304,6 +305,7 @@ switch($mode)
else
{
$row = $db->sql_fetchrowset($result);
$ttitle = $row[0]['topic_title'];
$tpost = $row[0]['topic_poster'];
$ttime = $row[0]['topic_time'];
@ -831,10 +833,15 @@ switch($mode)
for($x = 0; $x < $total_topics; $x++)
{
$topic_title = "";
if($topics[$x]['topic_status'] == 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
{
$folder_image = "<img src=\"" . $images['folder'] . "\">";
@ -842,15 +849,13 @@ switch($mode)
$topic_id = $topics[$x]['topic_id'];
$topic_title = "";
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)
{
$topic_title = $lang['Annoucement'] . " ";
$topic_title = "<b>" . $lang['Post_Announcement'] . ":</b> ";
}
$topic_title .= stripslashes($topics[$x]['topic_title']);