]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/aggregate.pm
improve warning message for multiple sources for page
[git.ikiwiki.info.git] / IkiWiki / Plugin / aggregate.pm
index fbf88c62738d783c210d27cf6aa57c1b81c71fef..be7da3a710ec66a6243f414d9de62a49580bf6ad 100644 (file)
@@ -571,7 +571,9 @@ sub aggregate (@) {
                        # XML::Feed doesn't work around XML::Atom's bizarre
                        # API, so we will. Real unicode strings? Yes please.
                        # See [[bugs/Aggregated_Atom_feeds_are_double-encoded]]
                        # XML::Feed doesn't work around XML::Atom's bizarre
                        # API, so we will. Real unicode strings? Yes please.
                        # See [[bugs/Aggregated_Atom_feeds_are_double-encoded]]
+                       no warnings 'once';
                        local $XML::Atom::ForceUnicode = 1;
                        local $XML::Atom::ForceUnicode = 1;
+                       use warnings;
 
                        my $c=$entry->content;
                        # atom feeds may have no content, only a summary
 
                        my $c=$entry->content;
                        # atom feeds may have no content, only a summary