-sub pagetemplate (@_) {
- my %params=@_;
- my $template=$params{template};
-
- if ($template->param("editurl") &&
- test_httpauth_pagespec($params{page})) {
- # go directly to cgiauthurl when editing a page matching
- # the pagespec
- $template->param(editurl => IkiWiki::cgiurl(
- cgiurl => $config{cgiauthurl},
- do => "edit", page => $params{page}));
- }
-}
-