Changeset 1217

Show
Ignore:
Timestamp:
01/14/08 22:36:20 (10 months ago)
Author:
mpaschal
Message:

Provide author to archive_file_for so we get a particular author's author-monthly archive (for example), not a random one
BugzID: 64628

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/release-27/lib/MT/WeblogPublisher.pm

    r1216 r1217  
    18321832    my $cat = MT::Category->load( $fi->category_id ) 
    18331833      if $fi->category_id; 
     1834    my $author = MT::Author->load( $fi->author_id ) 
     1835      if $fi->author_id; 
    18341836 
    18351837    ## Load the template-archive-type map entries for this blog and 
     
    18391841    ## we save some time by not loading the list of entries. 
    18401842    my $map = MT::TemplateMap->load( $fi->templatemap_id ); 
    1841     my $file = $pub->archive_file_for( $entry, $blog, $at, $cat, $map ); 
     1843    my $file = $pub->archive_file_for( $entry, $blog, $at, $cat, $map, 
     1844        undef, $author ); 
    18421845    if ( !defined($file) ) { 
    18431846        return $pub->error( $blog->errstr() );