Changed: Allow multiple reports. If one tries to report the same post twice, it will silently update the existing report.

git-svn-id: file:///svn/phpbb/trunk@4444 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Ludovic Arnaud 2003-08-27 20:35:35 +00:00
parent 3990cefcc0
commit dd2468ac1c
3 changed files with 2 additions and 5 deletions

View file

@ -1340,8 +1340,7 @@ $lang += array(
'REPORT_NOTIFY_EXPLAIN' => 'Informs you when your report is dealt with', 'REPORT_NOTIFY_EXPLAIN' => 'Informs you when your report is dealt with',
'POST_REPORTED_SUCCESS' => 'This post has been successfully reported', 'POST_REPORTED_SUCCESS' => 'This post has been successfully reported',
'ALREADY_REPORTED' => 'You have already reported this post', 'ALREADY_REPORTED' => 'This post has already been reported',
'EDIT_REPORT' => 'Click %sHere%s to edit your report',
'report_reasons' => array( 'report_reasons' => array(
'TITLE' => array( 'TITLE' => array(

View file

@ -20,7 +20,7 @@
<!-- IF S_CAN_NOTIFY --> <!-- IF S_CAN_NOTIFY -->
<tr> <tr>
<td class="row1"><span class="gen"><b>{L_REPORT_NOTIFY}:</b></span><br /><span class="gensmall">{L_REPORT_NOTIFY_EXPLAIN}</span></td> <td class="row1"><span class="gen"><b>{L_REPORT_NOTIFY}:</b></span><br /><span class="gensmall">{L_REPORT_NOTIFY_EXPLAIN}</span></td>
<td class="row2"><span class="gen"><input type="radio" name="notify" value="1" />{L_YES} &nbsp;<input type="radio" name="notify" value="0" checked="checked" />{L_NO}</span></td> <td class="row2"><span class="gen"><input type="radio" name="notify" value="1" <!-- IF S_NOTIFY -->checked="checked" <!-- ENDIF -->/>{L_YES} &nbsp;<input type="radio" name="notify" value="0" <!-- IF not S_NOTIFY -->checked="checked" <!-- ENDIF -->/>{L_NO}</span></td>
</tr> </tr>
<!-- ENDIF --> <!-- ENDIF -->
<tr> <tr>

View file

@ -186,11 +186,9 @@
<td width="100%">&nbsp;</td> <td width="100%">&nbsp;</td>
<td width="10" nowrap="nowrap"><a href="{postrow.U_MINI_POST}">{postrow.MINI_POST_IMG}</a></td> <td width="10" nowrap="nowrap"><a href="{postrow.U_MINI_POST}">{postrow.MINI_POST_IMG}</a></td>
<td class="gensmall" nowrap="nowrap"><b>{L_POSTED}:</b> {postrow.POST_DATE}</td> <td class="gensmall" nowrap="nowrap"><b>{L_POSTED}:</b> {postrow.POST_DATE}</td>
<!-- IF not postrow.S_POST_REPORTED -->
<!-- IF postrow.U_REPORT --> <!-- IF postrow.U_REPORT -->
<td>&nbsp;<a href="{postrow.U_REPORT}">{REPORT_IMG}</a></td> <td>&nbsp;<a href="{postrow.U_REPORT}">{REPORT_IMG}</a></td>
<!-- ENDIF --> <!-- ENDIF -->
<!-- ENDIF -->
</tr> </tr>
</table></td> </table></td>
</tr> </tr>