[numeric_score] use Search::get_images() to find images only when they match the visibility settings, fixes #563
This commit is contained in:
parent
9e1f0e792d
commit
889f595076
1 changed files with 2 additions and 6 deletions
|
@ -224,12 +224,8 @@ class NumericScore extends Extension
|
||||||
|
|
||||||
//filter images by score != 0 + date > limit to max images on one page > order from highest to lowest score
|
//filter images by score != 0 + date > limit to max images on one page > order from highest to lowest score
|
||||||
|
|
||||||
$result = $database->get_col($sql, $args);
|
$ids = $database->get_col($sql, $args);
|
||||||
$images = [];
|
$images = Search::get_images($ids);
|
||||||
foreach ($result as $id) {
|
|
||||||
$images[] = Image::by_id((int)$id);
|
|
||||||
}
|
|
||||||
|
|
||||||
$this->theme->view_popular($images, $dte);
|
$this->theme->view_popular($images, $dte);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue