diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2007-04-12 04:13:55 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2007-04-12 04:13:55 +0000 |
commit | 01b058a28570e60c928c2b7f2c83512e6fe84145 (patch) | |
tree | 7f82bca5a1f3cef095e3ba7099ce8f047344a4a9 /IkiWiki | |
parent | 08f87ed62dcf71415586b875bb7bce10986a6a6b (diff) |
* Add postformtext parameter to inline.
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/Plugin/inline.pm | 8 |
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) { |