Index: /branches/release-36/php/lib/function.mtcommentauthor.php
===================================================================
--- /branches/release-36/php/lib/function.mtcommentauthor.php (revision 1174)
+++ /branches/release-36/php/lib/function.mtcommentauthor.php (revision 2055)
@@ -8,13 +8,15 @@
 function smarty_function_mtcommentauthor($args, &$ctx) {
     $c = $ctx->stash('comment');
-    if (!$c) {
+    if (!$c)
         return $ctx->error("No comment available");
+    $a = isset($c['comment_author']) ? $c['comment_author'] : '';
+    if ($c['comment_commenter_id']) {
+        $commenter = $ctx->stash('commenter');
+        if ($commenter)
+            $a = $commenter['author_nickname'];
     }
-    $a = isset($c['comment_author']) ? $c['comment_author'] : '';
-    if (isset($args['default'])) {
+    if (isset($args['default']))
         $a or $a = $args['default'];
-    }
     $a or $a = '';
     return strip_tags($a);
 }
-?>
