aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-03-14 18:43:54 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-03-14 18:43:54 -0400
commit16299dbae894b916e776da3bb6aea2a44c15501a (patch)
tree336b2b91989196075c6e69c7f8a768d793ce225f /IkiWiki/Plugin
parentbc2671082bd69fd10091c4598f2002a672a4296d (diff)
downloadikiwiki-16299dbae894b916e776da3bb6aea2a44c15501a.tar
ikiwiki-16299dbae894b916e776da3bb6aea2a44c15501a.tar.gz
load HTML::Entities at top
Used in several subs, not all of which load it on demand, this seems simpler.
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r--IkiWiki/Plugin/aggregate.pm5
1 files changed, 1 insertions, 4 deletions
diff --git a/IkiWiki/Plugin/aggregate.pm b/IkiWiki/Plugin/aggregate.pm
index 3ec067cc1..942dbbcc3 100644
--- a/IkiWiki/Plugin/aggregate.pm
+++ b/IkiWiki/Plugin/aggregate.pm
@@ -7,6 +7,7 @@ use strict;
use IkiWiki 2.00;
use HTML::Parser;
use HTML::Tagset;
+use HTML::Entities;
use URI;
use open qw{:utf8 :std};
@@ -205,8 +206,6 @@ sub loadstate () { #{{{
sub savestate () { #{{{
return unless $state_loaded;
garbage_collect();
- eval q{use HTML::Entities};
- error($@) if $@;
my $newfile="$config{wikistatedir}/aggregate.new";
my $cleanup = sub { unlink($newfile) };
open (OUT, ">$newfile") || error("open $newfile: $!", $cleanup);
@@ -335,8 +334,6 @@ sub aggregate (@) { #{{{
error($@) if $@;
eval q{use URI::Fetch};
error($@) if $@;
- eval q{use HTML::Entities};
- error($@) if $@;
foreach my $feed (@_) {
$feed->{lastupdate}=time;