From 01b058a28570e60c928c2b7f2c83512e6fe84145 Mon Sep 17 00:00:00 2001 From: joey Date: Thu, 12 Apr 2007 04:13:55 +0000 Subject: * Add postformtext parameter to inline. --- IkiWiki/Plugin/inline.pm | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'IkiWiki/Plugin/inline.pm') 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) { -- cgit v1.2.3