]> ruin.nu Git - ndwebbie.git/blobdiff - NDWeb/Pages/Points.pm
fixed a minor bug with changing row colors
[ndwebbie.git] / NDWeb / Pages / Points.pm
index 04c17dd4fa8f9f0cd3b322f21a7419a27d87164f..11482abbd1879f92c8bc5ca7203beefa44c00fe6 100644 (file)
 #   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