]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Setup/Yaml.pm
fix back-compat with old Net::OpenID
[git.ikiwiki.info.git] / IkiWiki / Setup / Yaml.pm
index 0fc2736756d73ba099b27961a2772a769731b204..8ad44eb4afab294114ad1dad17f21c915794904a 100644 (file)
@@ -10,7 +10,8 @@ sub loaddump ($$) {
        my $class=shift;
        my $content=shift;
 
-       eval q{use YAML};
+       eval q{use YAML::Any};
+       eval q{use YAML} if $@;
        die $@ if $@;
        IkiWiki::Setup::merge(Load($content));
 }
@@ -18,7 +19,8 @@ sub loaddump ($$) {
 sub gendump ($@) {
        my $class=shift;
        
-       eval q{use YAML};
+       eval q{use YAML::Any};
+       eval q{use YAML} if $@;
        die $@ if $@;
 
        "# IkiWiki::Setup::Yaml - YAML formatted setup file",