|
Revision 2685, 407 bytes
(checked in by bchoate, 17 months ago)
|
|
Made CommenterName php tag consistent with Perl.
|
-
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_mtcommentername($args, &$ctx) { |
|---|
| 9 | $a =& $ctx->stash('commenter'); |
|---|
| 10 | $name = isset($a) ? $a['author_nickname'] : ''; |
|---|
| 11 | if ($name == '') { |
|---|
| 12 | $name = $ctx->tag('CommentName'); |
|---|
| 13 | } |
|---|
| 14 | return $name; |
|---|
| 15 | } |
|---|