comments: only try to insert commentuser etc. into templates if the page contained [[!_comment]]
parent
8b084a1327
commit
d70b05971f
|
@ -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});
|
||||
|
|
Loading…
Reference in New Issue