comments: only try to insert commentuser etc. into templates if the page contained [[!_comment]]

master
Simon McVittie 2009-01-10 11:29:56 +00:00
parent 8b084a1327
commit d70b05971f
1 changed files with 6 additions and 0 deletions

View File

@ -604,6 +604,12 @@ sub pagetemplate (@) {
}
}
# everything below this point is only relevant to the comments
# themselves
if (!exists $commentstate{$page}) {
return;
}
if ($template->query(name => 'commentuser')) {
$template->param(commentuser =>
$commentstate{$page}{commentuser});