aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--phpBB/modcp.php10
-rw-r--r--phpBB/templates/subSilver/modcp_split.tpl2
2 files changed, 11 insertions, 1 deletions
diff --git a/phpBB/modcp.php b/phpBB/modcp.php
index 35d23ae424..c67b0cfc1f 100644
--- a/phpBB/modcp.php
+++ b/phpBB/modcp.php
@@ -812,6 +812,15 @@ switch($mode)
$row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2'];
$row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2'];
+ if($i > 1 || $total_posts > 1)
+ {
+ $checkbox = '<input type="checkbox" name="post_id_list[]" value="' . $post_id . '" />';
+ }
+ else
+ {
+ $checkbox = '&nbsp;';
+ }
+
$template->assign_block_vars("postrow", array(
"ROW_COLOR" => "#" . $row_color,
"ROW_CLASS" => $row_class,
@@ -819,6 +828,7 @@ switch($mode)
"POST_DATE" => $post_date,
"POST_SUBJECT" => $post_subject,
"MESSAGE" => $message,
+ "SPLIT_CHECKBOX" => $checkbox,
"POST_ID" => $post_id)
);
}
diff --git a/phpBB/templates/subSilver/modcp_split.tpl b/phpBB/templates/subSilver/modcp_split.tpl
index da00e1461c..c29c080352 100644
--- a/phpBB/templates/subSilver/modcp_split.tpl
+++ b/phpBB/templates/subSilver/modcp_split.tpl
@@ -58,7 +58,7 @@
</tr>
</table>
</td>
- <td width="5%" align="center" class="{postrow.ROW_CLASS}"><input type="checkbox" name="post_id_list[]" value="{postrow.POST_ID}" /></td>
+ <td width="5%" align="center" class="{postrow.ROW_CLASS}">{postrow.SPLIT_CHECKBOX}</td>
</tr>
<tr>
<td colspan="3" height="1" class="row3"><img src="templates/subSilver/images/spacer.gif" width="1" height="1" alt="."></td>