# HG changeset patch # User "Rex Tsai " # Date 1225264498 -28800 # Node ID 31803acb9c5ff48121ab29cd0f27ef460a6f83d2 # Parent c86e2182d3b88a1fdfd56179c44183646783c77d fixed typo again diff -r c86e2182d3b8 -r 31803acb9c5f Ikariam.pm --- a/Ikariam.pm Wed Oct 29 15:11:24 2008 +0800 +++ b/Ikariam.pm Wed Oct 29 15:14:58 2008 +0800 @@ -512,8 +512,8 @@ my $result = $extractor->{doc}->find(sprintf('//div[@id="%s"]//ul[@id="battleReports"]/li[@class="enroute"]', $_)); foreach my $div ( @$result ) { my $extractor = new Ikariam::Extractor(content => $div->toString(1)); - my $t = $extractor->find('//div[@class="report"]/a[1]/@href'); - my $f = $extractor->find('//div[@class="report"]/a[2]/@href'); + my $f = $extractor->find('//div[@class="report"]/a[1]/@href'); + my $t = $extractor->find('//div[@class="report"]/a[2]/@href'); $f = $1 if($f =~ /\?view=island&cityId=(\d+)/); $t = $1 if($t =~ /\?view=island&cityId=(\d+)/);