aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/inline.pm
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-04-12 04:13:55 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-04-12 04:13:55 +0000
commit01b058a28570e60c928c2b7f2c83512e6fe84145 (patch)
tree7f82bca5a1f3cef095e3ba7099ce8f047344a4a9 /IkiWiki/Plugin/inline.pm
parent08f87ed62dcf71415586b875bb7bce10986a6a6b (diff)
downloadikiwiki-01b058a28570e60c928c2b7f2c83512e6fe84145.tar
ikiwiki-01b058a28570e60c928c2b7f2c83512e6fe84145.tar.gz
* Add postformtext parameter to inline.
Diffstat (limited to 'IkiWiki/Plugin/inline.pm')
-rw-r--r--IkiWiki/Plugin/inline.pm8
1 files changed, 8 insertions, 0 deletions
diff --git a/IkiWiki/Plugin/inline.pm b/IkiWiki/Plugin/inline.pm
index d0cfbf873..9cf781a25 100644
--- a/IkiWiki/Plugin/inline.pm
+++ b/IkiWiki/Plugin/inline.pm
@@ -137,6 +137,14 @@ sub preprocess_inline (@) { #{{{
exists $params{rootpage} ? $params{rootpage} : $params{page});
$formtemplate->param(rssurl => $rssurl) if $feeds && $rss;
$formtemplate->param(atomurl => $atomurl) if $feeds && $atom;
+ if (exists $params{postformtext}) {
+ $formtemplate->param(postformtext =>
+ $params{postformtext});
+ }
+ else {
+ $formtemplate->param(postformtext =>
+ gettext("Add a new post titled:"));
+ }
$ret.=$formtemplate->output;
}
elsif ($feeds) {