Changeset 1143:fbf575ae9bda for admin/comments.php
- Timestamp:
- 04/04/13 16:04:11 (12 years ago)
- Branch:
- default
- Children:
- 1144:4af82896ca3d, 1155:49ba58cbf593
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/comments.php
r1054 r1143 225 225 '</form>'; 226 226 227 if (!$with_spam) { 228 229 $spam_count = $core->blog->getComments(array('comment_status'=>-2),true)->f(0); 227 $spam_count = $core->blog->getComments(array('comment_status'=>-2),true)->f(0); 228 if ($spam_count > 0) { 230 229 231 if ($spam_count > 0) { 232 233 echo 234 '<form action="comments.php" method="post" class="fieldset">'; 235 230 echo 231 '<form action="comments.php" method="post" class="fieldset">'; 232 233 if (!$with_spam || ($status != -2)) { 236 234 if ($spam_count == 1) { 237 235 echo '<p>'.sprintf(__('You have one spam comments.'),'<strong>'.$spam_count.'</strong>').' '. … … 241 239 '<a href="comments.php?status=-2">'.__('Show them.').'</a></p>'; 242 240 } 243 244 echo245 $core->formNonce().246 '<input name="delete_all_spam" class="delete" type="submit" value="'.__('Delete all spams').'" /></p>';247 248 # --BEHAVIOR-- adminCommentsSpamForm249 $core->callBehavior('adminCommentsSpamForm',$core);250 251 echo '</form>';252 241 } 242 243 echo 244 $core->formNonce(). 245 '<input name="delete_all_spam" class="delete" type="submit" value="'.__('Delete all spams').'" /></p>'; 246 247 # --BEHAVIOR-- adminCommentsSpamForm 248 $core->callBehavior('adminCommentsSpamForm',$core); 249 250 echo '</form>'; 253 251 } 254 252
Note: See TracChangeset
for help on using the changeset viewer.