summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
bc26710)
Used in several subs, not all of which load it on demand, this seems simpler.
use IkiWiki 2.00;
use HTML::Parser;
use HTML::Tagset;
use IkiWiki 2.00;
use HTML::Parser;
use HTML::Tagset;
use URI;
use open qw{:utf8 :std};
use URI;
use open qw{:utf8 :std};
sub savestate () { #{{{
return unless $state_loaded;
garbage_collect();
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);
my $newfile="$config{wikistatedir}/aggregate.new";
my $cleanup = sub { unlink($newfile) };
open (OUT, ">$newfile") || error("open $newfile: $!", $cleanup);
error($@) if $@;
eval q{use URI::Fetch};
error($@) if $@;
error($@) if $@;
eval q{use URI::Fetch};
error($@) if $@;
- eval q{use HTML::Entities};
- error($@) if $@;
foreach my $feed (@_) {
$feed->{lastupdate}=time;
foreach my $feed (@_) {
$feed->{lastupdate}=time;