Show
Ignore:
Timestamp:
04/17/08 21:48:11 (20 months ago)
Author:
bchoate
Message:

Added support for phrases on count tags. BugId:79359

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/release-35/php/lib/function.mttagcount.php

    r1174 r1956  
    88function smarty_function_mttagcount($args, &$ctx) { 
    99    $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); 
    1614} 
    17 ?>