projects
/
matthijs
/
upstream
/
blosxom-plugins.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d6c6337
)
Only interpolate action tag content when defined.
interpolate_fancy
author
Matthijs Kooijman
<matthijs@stdin.nl>
Mon, 4 Jan 2010 20:06:20 +0000
(21:06 +0100)
committer
Matthijs Kooijman
<matthijs@stdin.nl>
Mon, 4 Jan 2010 20:06:20 +0000
(21:06 +0100)
This fixes a warning when using self-closing action tags.
general/interpolate_fancy
patch
|
blob
|
history
diff --git
a/general/interpolate_fancy
b/general/interpolate_fancy
index 45208d24d77feec491916c5cbce68f8144aee2bf..9eaf045219c4fef24b400a5630130ebddb2d9471 100644
(file)
--- a/
general/interpolate_fancy
+++ b/
general/interpolate_fancy
@@
-176,7
+176,9
@@
sub _action {
my($plugin, $action, $attr, $content) = @_;
my $result;
- $content =~ s#<\@((?:\w|::)+?)\.(\w+?)\s+?(.+?)?(?:>(.*?)<\/\@\1\.\2>|\s+?\/>)#&interpolate_fancy::_action($1,$2,$3,$4)#gse;
+ if (defined $content) {
+ $content =~ s#<\@((?:\w|::)+?)\.(\w+?)\s+?(.+?)?(?:>(.*?)<\/\@\1\.\2>|\s+?\/>)#&interpolate_fancy::_action($1,$2,$3,$4)#gse;
+ }
my $attributes = interpolate_fancy::_attributes($attr);