Changeset 1586

Show
Ignore:
Timestamp:
03/26/08 07:55:18 (8 months ago)
Author:
fumiakiy
Message:

Stash the number of entries in an iteration so ArchiveCount tag should not have to count the number again in the same iteration. BugId:70277

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/release-32/lib/MT/Template/ContextHandlers.pm

    r1583 r1586  
    58435843        local $vars->{__odd__} = $i % 2 == 1; 
    58445844        local $vars->{__counter__} = $i; 
     5845        local $ctx->{__stash}{archive_count} = $cnt; 
    58455846        local $ctx->{__stash}{entries} = delay(sub{  
    58465847            $archiver->archive_group_entries($ctx, %curr)