Skip to content

Commit

Permalink
Don't use @{..} for XML::RSS{category}
Browse files Browse the repository at this point in the history
It seems the array returned by split() does not need to be dereferenced
at this stage, but just copied (as is done with the []).

Also, re-order category before pubDate, as was the case prior to
6b87e3d.

Tested with blogsum-1.1p1 OpenBSD 5.2.

Signed-off-by: Olivier Mehani <shtrom@ssji.net>
  • Loading branch information
shtrom committed Dec 11, 2012
1 parent 9f32fa7 commit d1b428e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ sub output_rss {
description => $item->{'body'},
author => $item->{'author'},
comments => "${link}#comments",
category => [split(/, */, $item->{'tags'})],
pubDate => POSIX::strftime("%a, %d %b %Y %H:%M:%S %Z", gmtime($item->{'epoch'})),
category => @{[split(/, */, $item->{'tags'})]},
);
} else {
$rss->add_item (
Expand Down

0 comments on commit d1b428e

Please sign in to comment.