Changeset 77

Show
Ignore:
Timestamp:
04/06/05 12:53:35
Author:
brad
Message:

Updates to permission model; fix to allow display of active author at the top of the configuration screens.

Files:

Legend:

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

    r76 r77  
    196196                    my $entry = MT::Entry->load($id); 
    197197                    next unless $entry; 
    198                     $app->rebuild_entry(Entry => $id, BuildDependencies => 0); 
     198                    $app->rebuild_entry(Entry => $entry, 
     199                                        BuildDependencies => 0); 
    199200                    $blog_rebuild{$entry->blog_id} = 1; 
    200201                } else { 
     
    205206                    $blog_rebuild{$tb->blog_id} = 1; 
    206207                    if ($tb->entry_id) { 
    207                         $app->rebuild_entry(Entry => $tb->entry_id, BuildDependencies => 0); 
    208                     } else { 
     208                        $app->rebuild_entry(Entry => $tb->entry_id, 
     209                                            BuildDependencies => 0); 
     210                    } elsif ($tb->category_id) { 
    209211                        $app->_rebuild_entry_archive_type( 
    210212                            Entry => undef, Blog => $blog, 
     
    217219                        my $rss = _generate_rss($tb, 10); 
    218220                        my $base = $blog->archive_path; 
    219                         my $feed = File::Spec->catfile($base, $tb->rss_file || $tb->id . '.xml');    
     221                        my $feed = File::Spec->catfile($base, 
     222                            $tb->rss_file || $tb->id . '.xml');    
    220223                        my $fmgr = $blog->file_mgr; 
    221224                        $fmgr->put_data($rss, $feed); 
     
    262265    } 
    263266 
    264     my $iter; 
    265267    if ($type eq 'comments') { 
    266268        require MT::Comment; 
     
    848850        $param->{can_moderate_pings} = 1; 
    849851    } 
     852    $param->{author_id} = $app->{author}->id; 
     853    $param->{author_name} = $app->{author}->name; 
    850854    $param->{can_configure} = $app->{author}->can_create_blog; 
    851855    $param->{can_view_log} = $app->{author}->can_view_log; 
  • trunk/plugins/spamlookup/tmpl/config.tmpl

    r68 r77  
    1919<h2>SpamLookup Configuration</h2> 
    2020 
     21 
     22<TMPL_IF NAME=SAVED> 
     23  <p class="message">Your settings have been updated.</p> 
     24</TMPL_IF> 
    2125 
    2226<TMPL_IF NAME=MESSAGE> 
  • trunk/plugins/spamlookup/tmpl/despam.tmpl

    r63 r77  
    146146<TMPL_IF NAME=REDIRECT> 
    147147<p>Click <a href="<TMPL_VAR NAME=SCRIPT_URL>?__mode=despam&_type=<TMPL_VAR NAME=TYPE>&offset=<TMPL_VAR NAME=NEXT_OFFSET_VAL>&limit=<TMPL_VAR NAME=LIMIT>">here</a> if your browser does not redirect automatically...</p> 
    148 <TMPL_ELSE> 
    149 <p><a href="<TMPL_VAR NAME=SCRIPT_URL>">Return to configuration</a></p> 
    150148</TMPL_IF> 
    151149</TMPL_IF> 
  • trunk/plugins/spamlookup/tmpl/slheader.tmpl

    r73 r77  
    195195<li><a<TMPL_IF NAME=NAV_COMMENTS> class="here"</TMPL_IF> id="nav-comments" title="<MT_TRANS phrase="List Comments">" href="<TMPL_VAR NAME=SCRIPT_URL>?__mode=view&amp;_type=comments"><MT_TRANS phrase="Comments"></a></li> 
    196196<li><a<TMPL_IF NAME=NAV_TRACKBACKS> class="here"</TMPL_IF> id="nav-trackbacks" title="<MT_TRANS phrase="List TrackBack Pings">" href="<TMPL_VAR NAME=SCRIPT_URL>?__mode=view&amp;_type=pings"><MT_TRANS phrase="TrackBacks"></a></li> 
    197 <li><a<TMPL_IF NAME=NAV_CONFIG> class="here"</TMPL_IF> id="nav-config" title="<MT_TRANS phrase="SpamLookup Configuration">" href="<TMPL_VAR NAME=SCRIPT_URL>?__mode=show"><MT_TRANS phrase="Configuration"></a></li> 
     197<TMPL_IF NAME=CAN_CONFIGURE> 
     198<li><a<TMPL_IF NAME=NAV_CONFIG> class="here"</TMPL_IF> id="nav-config" title="<MT_TRANS phrase="SpamLookup Configuration">" href="<TMPL_VAR NAME=SCRIPT_URL>?__mode=setup"><MT_TRANS phrase="Configuration"></a></li> 
     199</TMPL_IF> 
    198200</ul></li> 
    199201<li><MT_TRANS phrase="Utilities"> 
    200202<ul class="sub"> 
    201203<li><a<TMPL_IF NAME=NAV_TEST> class="here"</TMPL_IF> id="nav-test" title="<MT_TRANS phrase="Test Filters">" href="<TMPL_VAR NAME=SCRIPT_URL>?__mode=test"><MT_TRANS phrase="Test"></a></li> 
     204<TMPL_IF NAME=CAN_VIEW_LOG> 
    202205<li><a<TMPL_IF NAME=NAV_LOGS> class="here"</TMPL_IF> id="nav-logs" title="<MT_TRANS phrase="SpamLookup Logs">" href="<TMPL_VAR NAME=SCRIPT_URL>?__mode=logs"><MT_TRANS phrase="Logs"></a></li> 
     206</TMPL_IF> 
    203207</ul> 
    204208</li>