summaryrefslogtreecommitdiff
path: root/lib/VNDB/VN.pm
diff options
context:
space:
mode:
authoryorhel <yorhel@1fe2e327-d9db-4752-bcf7-ef0cb4a1748b>2008-07-08 07:51:50 +0000
committeryorhel <yorhel@1fe2e327-d9db-4752-bcf7-ef0cb4a1748b>2008-07-08 07:51:50 +0000
commit079e594bb5a43f948fed01b5140e01f3fd127ff9 (patch)
tree5d4b0756a03e49b36cd0f2ba44c46a1b0d60980f /lib/VNDB/VN.pm
parentdb47e11b580efa1938de892e6c08ba47ba2c6cc4 (diff)
Removed the rating system and small cleanup on the homepage
git-svn-id: svn://vndb.org/vndb@55 1fe2e327-d9db-4752-bcf7-ef0cb4a1748b
Diffstat (limited to 'lib/VNDB/VN.pm')
-rw-r--r--lib/VNDB/VN.pm13
1 files changed, 7 insertions, 6 deletions
diff --git a/lib/VNDB/VN.pm b/lib/VNDB/VN.pm
index 365204d4..683aba67 100644
--- a/lib/VNDB/VN.pm
+++ b/lib/VNDB/VN.pm
@@ -49,10 +49,10 @@ sub VNPage {
latest => scalar $self->DBGetVNList(vid => $id, results => 7, hide => 1),
graph => $self->DBVNListStats(vid => $id),
},
- votes => {
- latest => scalar $self->DBGetVotes(vid => $id, results => 10, hide => 1),
- graph => $self->DBVoteStats(vid => $id),
- },
+ #votes => {
+ # latest => scalar $self->DBGetVotes(vid => $id, results => 10, hide => 1),
+ # graph => $self->DBVoteStats(vid => $id),
+ #},
) : (),
});
}
@@ -212,12 +212,13 @@ sub VNBrowse {
$chr = 'all' if !defined $chr;
my $f = $self->FormCheck(
- { name => 's', required => 0, default => 'title', enum => [ qw|title released votes| ] },
+ { name => 's', required => 0, default => 'title', enum => [ qw|title released| ] },
{ name => 'o', required => 0, default => 'a', enum => [ 'a','d' ] },
{ name => 'q', required => 0, default => '' },
{ name => 'sq', required => 0, default => '' },
{ name => 'p', required => 0, template => 'int', default => 1},
);
+ $f->{s} = 'title' if $f->{_err};
$f->{q} ||= $f->{sq};
@@ -257,7 +258,7 @@ sub VNBrowse {
@plat ? ( platform => \@plat ) : (),
results => 50,
page => $f->{p},
- order => {title => 'vr.title', released => 'v.c_released', votes => 'v.c_votes'
+ order => {title => 'vr.title', released => 'v.c_released',
}->{$f->{s}}.{a=>' ASC',d=>' DESC'}->{$f->{o}},
)) : ([], 0);