inline plugin: if meta plugin is also enabled, and has collected a uuid for a page, then pass it into the rssitem/atomitem templates

master
Simon McVittie 2008-07-11 23:44:12 +01:00
parent 9b34b879e2
commit e767f18867
1 changed files with 7 additions and 0 deletions

View File

@ -442,6 +442,13 @@ sub genfeed ($$$$@) { #{{{
mdate_3339 => date_3339($pagemtime{$p}),
);
if (exists $pagestate{$p} &&
exists $pagestate{$p}{meta}{uuid}) {
my $atom_id = $pagestate{$p}{meta}{uuid};
$itemtemplate->param(uuid => $atom_id);
}
if ($itemtemplate->query(name => "enclosure")) {
my $file=$pagesources{$p};
my $type=pagetype($file);