aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2010-01-04 12:54:18 -0500
committerJoey Hess <joey@gnu.kitenet.net>2010-01-04 12:54:18 -0500
commitaed16b4833f98eda566f75b6a1a679febc1ba5ff (patch)
treec048d7844a39f596248e6229a43becc1211b0e5e /IkiWiki
parent4c89a2693484d014c296131c58f662b62800b636 (diff)
downloadikiwiki-aed16b4833f98eda566f75b6a1a679febc1ba5ff.tar
ikiwiki-aed16b4833f98eda566f75b6a1a679febc1ba5ff.tar.gz
inline: Avoid showing edit links if page editing is disabled. (Sjoerd)
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/inline.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/inline.pm b/IkiWiki/Plugin/inline.pm
index ec99300b3..401852513 100644
--- a/IkiWiki/Plugin/inline.pm
+++ b/IkiWiki/Plugin/inline.pm
@@ -369,9 +369,12 @@ sub preprocess_inline (@) {
forcesubpage => 1));
}
}
- if (length $config{cgiurl} && defined $type) {
+ if (length $config{cgiurl} &&
+ defined $type &&
+ IkiWiki->can("cgi_editpage")) {
$template->param(have_actions => 1);
$template->param(editurl => cgiurl(do => "edit", page => $page));
+
}
}