Closed (fixed)
Project:
Gallery
Version:
5.x-2.0-beta3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Oct 2007 at 10:42 UTC
Updated:
18 Oct 2007 at 16:41 UTC
gallery_filter.inc, line 66:
// Handle special case of n<=1
if ($params['n'] <= 1) {
$params['type'] = 'specificItem';
}
I tried to display a type=randomImage from an album but the album highlight is showed up.
Comments
Comment #1
profix898 commentedHmm. I just looked up if this was introduced by me ;) actually it was there before (gallery_filter.inc, line 94/95)
But I agree with you that it doesnt really make sense and I dont understand the comment. Is it safe to remove that check? Or does it have any side effects? I mean was this introduced for purpose or for imperfection of an earlier G2 release?
Comment #2
he_who_shall_not_be_named commentedNothing could happen.
Why to change the type (for any value of n)? Anyway it has a default value.
Comment #3
profix898 commentedOK. I will removed these lines with the next update ... Thanks.
Comment #4
profix898 commentedComment #5
profix898 commentedBugfix committed.
Comment #6
(not verified) commented