Changeset 1747 for branches/release-33/php/lib/function.mtarchivecount.php
- Timestamp:
- 04/03/08 08:56:40 (20 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/release-33/php/lib/function.mtarchivecount.php
r1174 r1747 7 7 8 8 function smarty_function_mtarchivecount($args, &$ctx) { 9 if ($ctx->stash('inside_mt_categories')) { 9 $at = ''; 10 $archiver = null; 11 if ($at = $ctx->stash('current_archive_type')) { 12 require_once("archive_lib.php"); 13 global $_archivers; 14 $archiver = $_archivers[$at]; 15 } 16 if ($ctx->stash('inside_mt_categories') && !$archiver->is_date_based()) { 10 17 return $ctx->tag('MTCategoryCount', $args); 11 18 } elseif ($count = $ctx->stash('archive_count')) { … … 16 23 $eargs = array(); 17 24 $eargs['blog_id'] = $ctx->stash('blog_id'); 18 if ($at = $ctx->stash('current_archive_type')) { 19 require_once("archive_lib.php"); 25 if ($at) { 20 26 $ts = $ctx->stash('current_timestamp'); 21 27 $tse = $ctx->stash('current_timestamp_end'); 22 global $_archivers;23 $archiver = $_archivers[$at];24 28 if (isset($archiver)) { 25 29 if ($ts && $tse) {
