aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-08-23 05:57:07 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-08-23 05:57:07 +0000
commitf27bf9e4006c55b45624d6fbb47dc3c625f919b9 (patch)
tree81f6fac7f238ab1d950e0cdaa4961c3f1ddfb3c5 /IkiWiki
parent24af25fc86094621313147a6beed1a74bfbbd9f7 (diff)
downloadikiwiki-f27bf9e4006c55b45624d6fbb47dc3c625f919b9.tar
ikiwiki-f27bf9e4006c55b45624d6fbb47dc3c625f919b9.tar.gz
fixes
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/template.pm1
-rw-r--r--IkiWiki/Render.pm2
2 files changed, 1 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/template.pm b/IkiWiki/Plugin/template.pm
index 5b4eeb3a8..7e23306cb 100644
--- a/IkiWiki/Plugin/template.pm
+++ b/IkiWiki/Plugin/template.pm
@@ -44,7 +44,6 @@ sub preprocess (@) { #{{{
$template->param($param => $params{$param});
}
-
return IkiWiki::preprocess($params{page}, $params{destpage},
$template->output);
} # }}}
diff --git a/IkiWiki/Render.pm b/IkiWiki/Render.pm
index 38bfcdfcb..d988e0956 100644
--- a/IkiWiki/Render.pm
+++ b/IkiWiki/Render.pm
@@ -104,7 +104,7 @@ sub preprocess ($$$;$) { #{{{
# Note: preserve order of params, some plugins may
# consider it significant.
my @params;
- while ($params =~ /(?:(\w+)=)?(?:"""(.+)"""|"([^"]+)"|(\S+))(?:\s+|$)/g) {
+ while ($params =~ /(?:(\w+)=)?(?:"""(.+)"""|"([^"]+)"|(\S+))(?:\s+|$)/sg) {
if (defined $1) {
push @params, $1, (defined $2 ? $2 : (defined $3 ? $3 : $4));
}