summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2011-01-02 18:49:00 +0100
committerYorhel <git@yorhel.nl>2011-01-02 18:49:00 +0100
commiteda527b4f5c73447b1100055b7e6ac3fa10225ab (patch)
treecf30f32ed1e212755e8a2e42ef56c8f4011addf2
parent6d3c3ec45ad157597d2830323575e6d060449f6c (diff)
Bugfix: Correctly randomize screenshots on homepage with filters
-rw-r--r--ChangeLog1
-rw-r--r--lib/VNDB/Handler/Misc.pm2
2 files changed, 2 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 80946feb..ab7363b4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
2.17 - ?
- Fixed perl warning on /u+/votes batchedit with nothing selected
+ - Bugfix: Correctly randomize screenshots on homepage with filters
2.16 - 2011-01-02
- VNDBUtil::bb2html(): Fixed bug when the string starts with a VNDBID
diff --git a/lib/VNDB/Handler/Misc.pm b/lib/VNDB/Handler/Misc.pm
index 90a457aa..5df5ab10 100644
--- a/lib/VNDB/Handler/Misc.pm
+++ b/lib/VNDB/Handler/Misc.pm
@@ -48,7 +48,7 @@ sub homepage {
# with filters applied it's signifcantly slower, so special-code the situations with and without filters
my @vns;
if($self->authPref('filter_vn')) {
- my $r = $self->filFetchDB(vn => undef, undef, {hasshot => 1, results => 4, order => 'rand'});
+ my $r = $self->filFetchDB(vn => undef, undef, {hasshot => 1, results => 4, sort => 'rand'});
@vns = map $_->{id}, @$r;
}
my $scr = $self->dbScreenshotRandom(@vns);