comments: use global configuration for allow_directives, commit, and pagename
parent
d35a2bd2de
commit
a9b0b3da5f
|
@ -220,10 +220,9 @@ sub sessioncgi ($$) { #{{{
|
||||||
error(gettext("bad page name"));
|
error(gettext("bad page name"));
|
||||||
}
|
}
|
||||||
|
|
||||||
my $allow_directives = $pagestate{$page}{comments}{allowdirectives};
|
my $allow_directives = $config{comments_allowdirectives};
|
||||||
my $commit_comments = defined $pagestate{$page}{comments}{commit}
|
my $commit_comments = $config{comments_commit};
|
||||||
? $pagestate{$page}{comments}{commit}
|
my $comments_pagename = $config{comments_pagename};
|
||||||
: 1;
|
|
||||||
|
|
||||||
# FIXME: is this right? Or should we be using the candidate subpage
|
# FIXME: is this right? Or should we be using the candidate subpage
|
||||||
# (whatever that might mean) as the base URL?
|
# (whatever that might mean) as the base URL?
|
||||||
|
|
Loading…
Reference in New Issue