avoid showing comment post stuff on dynamic pages
If the site is configured to allow comments on *, then the comment post interface was being added to cgi pages like signin and prefs. This fixes it w/o requiring more page.tmpl changes. The pagetemplate hook is called by misctemplate with an empty page name for dynamic pages.master
parent
0287fe29ac
commit
4a6d5330e5
|
@ -742,6 +742,7 @@ sub pagetemplate (@) {
|
||||||
$template->query(name => 'commentsurl') ||
|
$template->query(name => 'commentsurl') ||
|
||||||
$template->query(name => 'atomcommentsurl') ||
|
$template->query(name => 'atomcommentsurl') ||
|
||||||
$template->query(name => 'comments')) &&
|
$template->query(name => 'comments')) &&
|
||||||
|
length $page && # not dynamic
|
||||||
commentsshown($page);
|
commentsshown($page);
|
||||||
|
|
||||||
if ($template->query(name => 'comments')) {
|
if ($template->query(name => 'comments')) {
|
||||||
|
|
Loading…
Reference in New Issue