• Resolved Ljube

    (@ljube)


    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 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 7 years, 9 months ago by Ljube.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Sorting bug in media-upload.php’ is closed to new replies.