From: Simon McVittie Date: Thu, 18 Dec 2008 19:57:25 +0000 (+0000) Subject: comments: pass COMMENTOPENID to templates X-Git-Url: https://sipb.mit.edu/gitweb.cgi/ikiwiki.git/commitdiff_plain/8ed94c0a18435f3a1934e19949153c7ccf8ec78a?hp=8a9f4e225f1c54705fa6d7061724b62fe11ae8fa comments: pass COMMENTOPENID to templates --- diff --git a/IkiWiki/Plugin/comments.pm b/IkiWiki/Plugin/comments.pm index bd09c6b25..d095a00bd 100644 --- a/IkiWiki/Plugin/comments.pm +++ b/IkiWiki/Plugin/comments.pm @@ -573,6 +573,11 @@ sub pagetemplate (@) { $pagestate{$page}{comments}{commentuser}); } + if ($template->query(name => 'commentopenid')) { + $template->param(commentopenid => + $pagestate{$page}{comments}{commentopenid}); + } + if ($template->query(name => 'commentip')) { $template->param(commentip => $pagestate{$page}{comments}{commentip});