Sorting bug in media-upload.php
-
Hi,
here is a little bug:
problem: https://prntscr.com/fecr84 – sorting when click page numbers
fix (maybe fix is not the best, but work pretty well)
file: https://prntscr.com/fecs9c
media-upload.php #123
// Get the imagesif ( $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
- The topic ‘Sorting bug in media-upload.php’ is closed to new replies.