Changeset 2103 for branches/release-36/lib/MT/Template/ContextHandlers.pm
- Timestamp:
- 04/25/08 11:36:53 (19 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/release-36/lib/MT/Template/ContextHandlers.pm
r2062 r2103 561 561 my $limit = $_[0]->stash('limit'); 562 562 my $offset = $_[0]->stash('offset'); 563 $limit ? $offset / $limit + 1 : 1 563 $limit ? $offset / $limit + 1 : 1; 564 564 }, 565 565 TotalPages => sub { 566 566 my $limit = $_[0]->stash('limit'); 567 return 1 unless $limit; 567 568 my $count = $_[0]->stash('count'); 568 569 require POSIX;
