X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=NDWeb%2FPages%2FPoints.pm;h=11482abbd1879f92c8bc5ca7203beefa44c00fe6;hb=33e9d7fc67e7e25fd9dee023c753d80f31e21f54;hp=04c17dd4fa8f9f0cd3b322f21a7419a27d87164f;hpb=d6c9085e748c4d61901aaea72f0e1546dcc7cdda;p=ndwebbie.git diff --git a/NDWeb/Pages/Points.pm b/NDWeb/Pages/Points.pm index 04c17dd..11482ab 100644 --- a/NDWeb/Pages/Points.pm +++ b/NDWeb/Pages/Points.pm @@ -17,15 +17,15 @@ # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * #**************************************************************************/ -package ND::Web::Pages::Points; +package NDWeb::Pages::Points; use strict; use warnings FATAL => 'all'; 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{points} = __PACKAGE__; +$NDWeb::Page::PAGES{points} = __PACKAGE__; sub render_body { @@ -46,7 +46,7 @@ sub render_body { $order = 'ASC' if ($type eq 'rank'); my $limit = 'LIMIT 10'; - $limit = '' if $self->isHC; + $limit = '' if $self->isOfficer; my $query = $DBH->prepare(qq{SELECT username,defense_points,attack_points,scan_points,humor_points ,(attack_points+defense_points+scan_points/20) as total_points, rank, count(NULLIF(rc.launched,FALSE)) AS raid_points