Mercurial > eagle-eye
changeset 106:31803acb9c5f
fixed typo again
author | "Rex Tsai <chihchun@kalug.linux.org.tw>" |
---|---|
date | Wed, 29 Oct 2008 15:14:58 +0800 |
parents | c86e2182d3b8 |
children | 554bdd49c703 |
files | Ikariam.pm |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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+)/);