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 = "\"Topic"; + } + 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 @@ + @@ -23,6 +24,7 @@ + @@ -30,7 +32,7 @@ -
  {L_TOPICS} {L_REPLIES} {L_LASTPOST}
{topicrow.FOLDER_IMG} {topicrow.TOPIC_TITLE} {topicrow.REPLIES} {topicrow.LAST_POST}
+ @@ -40,7 +42,7 @@ -
{L_PAGE} {ON_PAGE} {L_OF} {TOTAL_PAGES}
+       diff --git a/phpBB/templates/PSO/modcp_body.tpl b/phpBB/templates/PSO/modcp_body.tpl index 1892fe27ea..4b377dfa2f 100644 --- a/phpBB/templates/PSO/modcp_body.tpl +++ b/phpBB/templates/PSO/modcp_body.tpl @@ -8,9 +8,10 @@
- + + @@ -18,6 +19,7 @@ + @@ -25,10 +27,10 @@ - + -
Moderator Contol PanelModerator Contol Panel
   {L_TOPICS}   {L_REPLIES}   {L_LASTPOST} 
{topicrow.FOLDER_IMG}  {topicrow.TOPIC_TITLE} {topicrow.REPLIES} {topicrow.LAST_POST}
              
+
 {L_PAGE} {ON_PAGE} {L_OF} {TOTAL_PAGES}  {PAGINATION}