Changeset 1956 for branches/release-35/php/lib/function.mtarchivecount.php
- Timestamp:
- 04/17/08 21:48:11 (20 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/release-35/php/lib/function.mtarchivecount.php
r1766 r1956 14 14 $archiver = $_archivers[$at]; 15 15 } 16 $count = 0; 16 17 if ((!isset($archiver) && $ctx->stash('inside_mt_categories')) || 17 18 ($ctx->stash('inside_mt_categories') && !$archiver->is_date_based())) { 18 19 return $ctx->tag('MTCategoryCount', $args); 19 20 } elseif ($count = $ctx->stash('archive_count')) { 20 return $count;21 # $count is set 21 22 } elseif ($entries = $ctx->stash('entries')) { 22 returncount($entries);23 $count = count($entries); 23 24 } else { 24 25 $eargs = array(); … … 38 39 $eargs['lastn'] = -1; 39 40 $entries =& $ctx->mt->db->fetch_entries($eargs); 40 returncount($entries);41 $count = count($entries); 41 42 } 42 43 } 43 return 0;44 $ctx->count_format($count, $args); 44 45 } 45 ?>
