]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/inline.pm
Move yesno function out of inline and into IkiWiki core, not exported.
[ikiwiki.git] / IkiWiki / Plugin / inline.pm
index 9a63ea1c95cd11f9fdaa89da7d3e97ae08b8d2df..02c04cc003e4886414b48afc8e2e60b87f385c9a 100644 (file)
@@ -94,11 +94,6 @@ package IkiWiki;
 my %toping;
 my %feedlinks;
 
-sub yesno ($) { #{{{
-       my $val=shift;
-       return (defined $val && lc($val) eq "yes");
-} #}}}
-
 sub preprocess_inline (@) { #{{{
        my %params=@_;
        
@@ -443,10 +438,8 @@ sub genfeed ($$$$@) { #{{{
                );
 
                if (exists $pagestate{$p} &&
-                   exists $pagestate{$p}{meta}{uuid}) {
-                       my $atom_id = $pagestate{$p}{meta}{uuid};
-
-                       $itemtemplate->param(uuid => $atom_id);
+                   exists $pagestate{$p}{meta}{guid}) {
+                       $itemtemplate->param(guid => $pagestate{$p}{meta}{guid});
                }
 
                if ($itemtemplate->query(name => "enclosure")) {