Commit 8b9e7863 authored by Patrick Schmalstig's avatar Patrick Schmalstig
Browse files

Fixed MANTIS-5567 ( Take latest thumbnails as rep-images setting should use content add date)

parent 0668ae74
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -275,9 +275,9 @@ function render_gallery_box($myrow, $root = 'root', $show_member_stats_if_approp
    if (($pic == '') && ($is_member)) {
        $pic = $GLOBALS['FORUM_DRIVER']->get_member_avatar_url($member_id);
    }
    $thumb_order = 'ORDER BY id ASC';
    $thumb_order = 'ORDER BY add_date ASC';
    if (get_option('reverse_thumb_order') == '1') {
        $thumb_order = 'ORDER BY id DESC';
        $thumb_order = 'ORDER BY add_date DESC';
    }
    if ($pic == '') {
        if (addon_installed('content_privacy')) {