Replies: 0
Hi,
here is a little bug:
problem: http://prntscr.com/fecr84 – sorting when click page numbers
fix (maybe fix is not the best, but work pretty well)
file: http://prntscr.com/fecs9c
media-upload.php #123
// Get the images
if ( $ngg->options[‘galSort’] == “sortorder” )
$sorting = “pid”;
if ( $galleryID != 0 )
// $picarray = $wpdb->get_col(“SELECT pid FROM $wpdb->nggpictures WHERE galleryid = ‘$galleryID’ AND exclude != 1 ORDER BY {$ngg->options[‘galSort’]} {$ngg->options[‘galSortDir’]} LIMIT $start, 10 “);
$picarray = $wpdb->get_col(“SELECT pid FROM $wpdb->nggpictures WHERE galleryid = ‘$galleryID’ AND exclude != 1 ORDER BY ‘$sorting’ {$ngg->options[‘galSortDir’]} LIMIT $start, 10 “);
Kind regards,
Ljube
- This topic was modified 51 seconds ago by Ljube.