X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=NDWeb%2FPages%2FHostileAlliances.pm;h=703e8b71f0cb1700733c14207dc2d73f4ac95291;hb=57f880656c4486f68583058121a5bcb3b316199c;hp=c9c0916d3ecc28e0a2224550586b5abcb6a50e82;hpb=d6c9085e748c4d61901aaea72f0e1546dcc7cdda;p=ndwebbie.git diff --git a/NDWeb/Pages/HostileAlliances.pm b/NDWeb/Pages/HostileAlliances.pm index c9c0916..703e8b7 100644 --- a/NDWeb/Pages/HostileAlliances.pm +++ b/NDWeb/Pages/HostileAlliances.pm @@ -16,16 +16,16 @@ # Free Software Foundation, Inc., * # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * #**************************************************************************/ -package ND::Web::Pages::HostileAlliances; +package NDWeb::Pages::HostileAlliances; use strict; use warnings FATAL => 'all'; use ND::Include; use CGI qw/:standard/; -use ND::Web::Include; +use NDWeb::Include; -use base qw/ND::Web::XMLPage/; +use base qw/NDWeb::XMLPage/; -$ND::Web::Page::PAGES{hostileAlliances} = __PACKAGE__; +$NDWeb::Page::PAGES{hostileAlliances} = __PACKAGE__; sub render_body { my $self = shift; @@ -55,11 +55,8 @@ ORDER BY hostilecount DESC })or $ND::ERROR .= $DBH->errstr; $query->execute($begintick,$endtick) or $ND::ERROR .= $DBH->errstr; my @alliances; - my $i = 0; my $tick = $self->{TICK}; while (my $alliance = $query->fetchrow_hashref){ - $i++; - $alliance->{ODD} = $i % 2; push @alliances, $alliance; } $BODY->param(Alliances => \@alliances);