avoid unnecessary variable
parent
0ced5995d5
commit
2a7849b838
|
@ -558,7 +558,7 @@ sub pagetemplate (@) { #{{{
|
||||||
eval q{use IkiWiki::Plugin::inline};
|
eval q{use IkiWiki::Plugin::inline};
|
||||||
error($@) if $@;
|
error($@) if $@;
|
||||||
|
|
||||||
my @args = (
|
$comments = IkiWiki::preprocess_inline(
|
||||||
pages => "internal($page/${comments_pagename}*)",
|
pages => "internal($page/${comments_pagename}*)",
|
||||||
template => 'comments_display',
|
template => 'comments_display',
|
||||||
show => 0,
|
show => 0,
|
||||||
|
@ -568,7 +568,6 @@ sub pagetemplate (@) { #{{{
|
||||||
feedfile => 'comments',
|
feedfile => 'comments',
|
||||||
emptyfeeds => 'no',
|
emptyfeeds => 'no',
|
||||||
);
|
);
|
||||||
$comments = IkiWiki::preprocess_inline(@args);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (defined $comments && length $comments) {
|
if (defined $comments && length $comments) {
|
||||||
|
|
Loading…
Reference in New Issue