root/branches/release-26/php/lib/function.mtauthordisplayname.php @ 1174

Revision 1174, 484 bytes (checked in by bchoate, 23 months ago)

Updated copyright year for source.

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_mtauthordisplayname($args, &$ctx) {
9    // status: complete
10    // parameters: none
11    $author = $ctx->stash('author');
12    $author_name = $author['author_nickname'];
13    $author_name or $author_name =
14        $ctx->mt->translate('(Display Name not set)');
15    return $author_name;
16}
17?>
Note: See TracBrowser for help on using the browser.