root/branches/release-39/plugins/TypePadAntiSpam/php/function.mttypepadantispamcounter.php @ 2461

Revision 2461, 487 bytes (checked in by bchoate, 18 months ago)

Checkin of TypePad AntiSpam plugin; MT version bump.

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
8function smarty_function_mttypepadantispamcounter($args, &$ctx) {
9    $blog = $ctx->stash('blog');
10    $cfg = $ctx->mt->db->fetch_plugin_config('MT::Plugin::TypePadAntiSpam',
11        'blog:' . $blog['blog_id']);
12    $count = $cfg['blocked'];
13    $count or $count = 0;
14    return $ctx->count_format($count, $args);
15}
Note: See TracBrowser for help on using the browser.