Changeset 1956 for branches/release-35/php/lib/function.mttagcount.php
- Timestamp:
- 04/17/08 21:48:11 (20 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/release-35/php/lib/function.mttagcount.php
r1174 r1956 8 8 function smarty_function_mttagcount($args, &$ctx) { 9 9 $tag = $ctx->stash('Tag'); 10 if (!$tag) return ''; 11 if (is_array($tag)) { 12 return $tag['tag_count']; 13 } else { 14 return 0; 15 } 10 $count = 0; 11 if ($tag && is_array($tag)) 12 $count = $tag['tag_count']; 13 return $ctx->count_format($count, $args); 16 14 } 17 ?>
