Changeset 3001

Show
Ignore:
Timestamp:
08/28/08 19:42:26 (3 months ago)
Author:
bchoate
Message:

Corrected selection of total author count when publishing author archives. BugId:81666

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/MT/CMS/Blog.pm

    r2676 r3001  
    782782                    }; 
    783783                    $total = MT::Author->count( 
    784                         undef
     784                        { status => MT::Author::ACTIVE() }
    785785                        { 
    786786                            join   => MT::Entry->join_on( 'author_id', $terms, { unique => 1 } ), 
     
    960960            }; 
    961961            $total = MT::Author->count( 
    962                 undef
     962                { status => MT::Author::ACTIVE() }
    963963                { 
    964964                    join   => MT::Entry->join_on( 'author_id', $terms, { unique => 1 } ), 
  • trunk/lib/MT/WeblogPublisher.pm

    r2994 r3001  
    327327    $arg{join} = MT::Entry->join_on( 
    328328        'author_id', 
    329         { blog_id => $blog->id, class => 'entry' }, 
     329        { blog_id => $blog->id, class => 'entry', status => MT::Entry::RELEASE() }, 
    330330        { unique  => 1 } 
    331331    );