Changeset 244 for trunk/RebuildQueue

Show
Ignore:
Timestamp:
05/04/07 18:39:48 (3 years ago)
Author:
djacobs
Message:

* RebuildQueue-List.pl updated and put in the right place, rq_list mode now works with blog filtering, dropdown only offers blogs with files actually in the queue, only system administrators can see the queue, and if a template takes longer than 10 seconds to build, a warning is written to the activity log.

Location:
trunk/RebuildQueue/plugins/RebuildQueue
Files:
1 modified
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/RebuildQueue/plugins/RebuildQueue/RebuildQueue-List.pl

    r243 r244  
    1111use POSIX qw( strftime ); 
    1212 
    13 our $VERSION        = '1.05'; 
     13our $VERSION        = '1.051'; 
    1414our $SCHEMA_VERSION = '1.01'; 
    1515our $ENABLED        = 1; 
     
    136136        my $prev_offset = ($offset>0)?$offset-$limit:0; 
    137137 
    138  
    139138        $app->build_page("plugins/RebuildQueue/tmpl/queue_list.tmpl", { 
    140139                queueloop => \@$queue_loop, 
     
    148147                position_actions_both => ($prefs->{bar} eq 'both'), 
    149148 
    150                 saved_deleted => ($app->mode eq "rq_delete"), 
     149                saved_deleted => ($q->param("saved_deleted"))?"1":"0", 
    151150                filter => $filter, 
    152151                filter_val => $filter_val, 
     
    162161                return_args => "__mode=rq_list&filter=" . $filter . "&filter_val=" . $filter_val, 
    163162                list_total => $total, 
    164                  
    165163                }); 
    166164         
     
    170168        my $app = shift; 
    171169        my $q = $app->{query}; 
     170        my $return_args = $q->param('return_args'); 
    172171        my @ids = $q->param('id'); 
    173172        for my $id (@ids) { 
     
    177176                } 
    178177        } 
    179         &list($app); 
     178    return $app->redirect($app->uri(mode => 'rq_list') . '&saved_deleted=1&' . $return_args); 
    180179} 
    181180 
  • trunk/RebuildQueue/plugins/RebuildQueue/lib/RebuildQueue/Plugin.pm

    r216 r244  
    77#   Brad Choate -- http://bradchoate.com/ 
    88#   Jay Allen -- http://jayallen.org/ 
     9#   Apperceptive -- http://www.apperceptive.com/ 
     10# 
    911# Released under the Artistic License 
    1012# 
     
    1517use base 'MT::Plugin'; 
    1618 
    17 our $VERSION        = '1.04'; 
     19our $VERSION        = '1.051'; 
    1820our $SCHEMA_VERSION = '1.01'; 
    1921our $ENABLED        = 1; 
     
    428430=head1 AUTHORS 
    429431 
    430 Brad Choate and Jay Allen 
     432Brad Choate, Jay Allen and Apperceptive 
    431433 
    432434=head1 COPYRIGHT