Changeset 35

Show
Ignore:
Timestamp:
02/18/05 11:07:08
Author:
brad
Message:

Fix to prevent the view cache display from showing the left nav panel when banning ips for a particular weblog.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plugins/dnsbl/mt-dnsbl.cgi

    r34 r35  
    141141    my @bans = MT::IPBanList->load({ip => $ip, blog_id => $blog_id}); 
    142142    $_->remove foreach @bans; 
     143    $app->{query}->param('blog_id', 0);  # make sure we don't revert to a blog context view 
    143144    $app->view_cache(message => "Unbanned IP $ip successfully."); 
    144145} 
     
    156157    $ban->ip($ip); 
    157158    $ban->save; 
     159    $app->{query}->param('blog_id', 0);  # make sure we don't revert to a blog context view 
    158160    $app->view_cache(message => "Banned IP $ip successfully."); 
    159161}