Changeset 2685

Show
Ignore:
Timestamp:
07/03/08 00:38:40 (12 months ago)
Author:
bchoate
Message:

Made CommenterName php tag consistent with Perl.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/release-41/php/lib/function.mtcommentername.php

    r1174 r2685  
    88function smarty_function_mtcommentername($args, &$ctx) { 
    99    $a =& $ctx->stash('commenter'); 
    10     return isset($a) ? $a['author_nickname'] : ''; 
     10    $name = isset($a) ? $a['author_nickname'] : ''; 
     11    if ($name == '') { 
     12        $name = $ctx->tag('CommentName'); 
     13    } 
     14    return $name; 
    1115} 
    12 ?>