Index: /branches/release-38/php/lib/function.mtcommentlink.php
===================================================================
--- /branches/release-38/php/lib/function.mtcommentlink.php (revision 2331)
+++ /branches/release-38/php/lib/function.mtcommentlink.php (revision 2338)
@@ -7,7 +7,8 @@
 
 function smarty_function_mtcommentlink($args, &$ctx) {
+    $c = $ctx->stash('comment');
     $args['no_anchor'] = 1;
     $entry_link = $ctx->tag('EntryPermalink', $args);
-    $entry_link .= '#comment-' . $ctx['comment_id'];
-    return $link;
+    $entry_link .= '#comment-' . $c['comment_id'];
+    return $entry_link;
 }
