Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: sorting in toprated album  (Read 3748 times)

0 Members and 1 Guest are viewing this topic.

Titooy

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 736
    • under construction...
sorting in toprated album
« on: May 04, 2005, 12:19:21 am »

If some pictures have the same number of votes and the same rating, the order can be different on the thumb page than in the displayimage. That problem was already reported on CPG 1.3.x

My suggestion: on line 1141 of functions.inc.php,

change
Code: [Select]
$META_ALBUM_SET ORDER BY pic_rating DESC, votes DESC $limitinto
Code: [Select]
$META_ALBUM_SET ORDER BY pic_rating DESC, votes DESC, pid DESC $limitsince pid is unique and then we're certain that the order will be the same.
« Last Edit: May 09, 2005, 06:52:40 am by GauGau »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: sorting in toprated album
« Reply #1 on: May 04, 2005, 07:52:26 am »

committed fix as suggested - please confirm.

Joachim
Logged

Titooy

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 736
    • under construction...
Re: sorting in toprated album
« Reply #2 on: May 08, 2005, 10:04:11 pm »

works for me. Thanks.
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 18 queries.