From ca30d95a78ca974c040c152b8c31bdd63f219e6b Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sat, 12 Jul 2008 10:59:45 -0400 Subject: rename uuid to guid --- IkiWiki/Plugin/inline.pm | 4 ++-- IkiWiki/Plugin/meta.pm | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'IkiWiki/Plugin') diff --git a/IkiWiki/Plugin/inline.pm b/IkiWiki/Plugin/inline.pm index 2226e5723..2dcd1a90a 100644 --- a/IkiWiki/Plugin/inline.pm +++ b/IkiWiki/Plugin/inline.pm @@ -443,8 +443,8 @@ sub genfeed ($$$$@) { #{{{ ); if (exists $pagestate{$p} && - exists $pagestate{$p}{meta}{uuid}) { - $itemtemplate->param(uuid => $pagestate{$p}{meta}{uuid}); + exists $pagestate{$p}{meta}{guid}) { + $itemtemplate->param(guid => $pagestate{$p}{meta}{guid}); } if ($itemtemplate->query(name => "enclosure")) { diff --git a/IkiWiki/Plugin/meta.pm b/IkiWiki/Plugin/meta.pm index 02c99e9f6..d7f56a8bd 100644 --- a/IkiWiki/Plugin/meta.pm +++ b/IkiWiki/Plugin/meta.pm @@ -84,14 +84,14 @@ sub preprocess (@) { #{{{ $pagestate{$page}{meta}{description}=HTML::Entities::encode_numeric($value); # fallthrough } - elsif ($key eq 'uuid') { + elsif ($key eq 'guid') { my $abs = $value; if ($abs =~ m/^[[:xdigit:]]{8}-[[:xdigit:]]{4}-[[:xdigit]]{4}-[[:xdigit:]]{4}-[[:xdigit:]]{12}$/) { $abs = lc "urn:uuid:$abs"; } - $pagestate{$page}{meta}{uuid}=HTML::Entities::encode_numeric($abs); + $pagestate{$page}{meta}{guid}=HTML::Entities::encode_numeric($abs); # fallthrough } elsif ($key eq 'license') { -- cgit v1.2.3