Dotclear

Changeset 1054:142da2b40d5d


Ignore:
Timestamp:
12/03/12 15:56:35 (13 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Avoid using get param to transport result as it may interfere with pager (addresses #903)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/comments.php

    r1052 r1054  
    1919     try { 
    2020          $core->blog->delJunkComments(); 
    21           http::redirect('comments.php?delspam=1'); 
     21          $_SESSION['comments_del_spam'] = true; 
     22          http::redirect('comments.php'); 
    2223     } catch (Exception $e) { 
    2324          $core->error->add($e->getMessage()); 
     
    174175if (!$core->error->flag()) 
    175176{ 
    176      if (!empty($_GET['delspam'])) { 
     177     if (isset($_SESSION['comments_del_spam'])) { 
    177178          dcPage::message(__('Spam comments have been successfully deleted.')); 
     179          unset($_SESSION['comments_del_spam']); 
    178180     } 
    179181      
Note: See TracChangeset for help on using the changeset viewer.

Sites map