|
Revision 1956, 359 bytes
(checked in by bchoate, 20 months ago)
|
|
Added support for phrases on count tags. BugId:79359
|
-
Property svn:keywords set to
Author Date Id Revision
|
| Line | |
|---|
| 1 | <?php |
|---|
| 2 | # Movable Type (r) Open Source (C) 2001-2008 Six Apart, Ltd. |
|---|
| 3 | # This program is distributed under the terms of the |
|---|
| 4 | # GNU General Public License, version 2. |
|---|
| 5 | # |
|---|
| 6 | # $Id$ |
|---|
| 7 | |
|---|
| 8 | function smarty_function_mtcategorycount($args, &$ctx) { |
|---|
| 9 | $category = $ctx->stash('category'); |
|---|
| 10 | $count = $category['category_count']; |
|---|
| 11 | return $ctx->count_format($count, $args); |
|---|
| 12 | } |
|---|