diff --git a/phpBB/modcp.php b/phpBB/modcp.php
index de56cfb5d4..9e95544e7b 100644
--- a/phpBB/modcp.php
+++ b/phpBB/modcp.php
@@ -275,6 +275,7 @@ switch($mode)
}
break;
+
default:
$template->set_filenames(array("body" => "modcp_body.tpl"));
@@ -308,8 +309,29 @@ switch($mode)
for($x = 0; $x < $total_topics; $x++)
{
+ if($topics[$x]['topic_status'] == TOPIC_LOCKED)
+ {
+ $folder_image = "
";
+ }
+ else
+ {
+ $folder_image = "
";
+ }
+
$topic_id = $topics[$x]['topic_id'];
- $topic_title = stripslashes($topics[$x]['topic_title']);
+
+ $topic_title = "";
+
+ if($topics[$x]['topic_type'] == POST_STICKY)
+ {
+ $topic_title = $lang['Sticky'] . " ";
+ }
+ else if($topics[$x]['topic_type'] == POST_ANNOUNCE)
+ {
+ $topic_title = $lang['Annoucement'] . " ";
+ }
+
+ $topic_title .= stripslashes($topics[$x]['topic_title']);
$u_view_topic = append_sid("viewtopic.$phpEx?".POST_TOPIC_URL."=$topic_id");
$topic_replies = $topics[$x]['topic_replies'];
$last_post_time = create_date($board_config['default_dateformat'], $topics[$x]['post_time'], $board_config['default_timezone']);
@@ -317,6 +339,7 @@ switch($mode)
$template->assign_block_vars("topicrow", array(
"U_VIEW_TOPIC" => $u_view_topic,
+ "FOLDER_IMG" => $folder_image,
"TOPIC_TITLE" => $topic_title,
"REPLIES" => $topic_replies,
"LAST_POST" => $last_post_time,
@@ -338,4 +361,4 @@ switch($mode)
include('includes/page_tail.'.$phpEx);
-?>
+?>
\ No newline at end of file
diff --git a/phpBB/templates/Default/modcp_body.tpl b/phpBB/templates/Default/modcp_body.tpl
index 87569c810d..fb652176ba 100644
--- a/phpBB/templates/Default/modcp_body.tpl
+++ b/phpBB/templates/Default/modcp_body.tpl
@@ -16,6 +16,7 @@
+ {topicrow.FOLDER_IMG} |
{topicrow.TOPIC_TITLE} |
{topicrow.REPLIES} |
{topicrow.LAST_POST} |
@@ -30,7 +32,7 @@
-
+ |
{L_PAGE} {ON_PAGE} {L_OF} {TOTAL_PAGES} |
@@ -40,7 +42,7 @@
|
| |