|
Revision 1956, 430 bytes
(checked in by bchoate, 20 months ago)
|
|
Added support for phrases on count tags. BugId:79359
|
| 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_mtblogcategorycount($args, &$ctx) { |
|---|
| 9 | // status: complete |
|---|
| 10 | // parameters: none |
|---|
| 11 | $args['blog_id'] = $ctx->stash('blog_id'); |
|---|
| 12 | $count = $ctx->mt->db->blog_category_count($args); |
|---|
| 13 | return $ctx->count_format($count, $args); |
|---|
| 14 | } |
|---|