Constants for index config

This commit is contained in:
Matthew Barbour
2019-08-16 09:18:14 -05:00
committed by Shish
parent de39f3e5d7
commit 6b030c00eb
7 changed files with 88 additions and 73 deletions

View File

@ -129,7 +129,7 @@ class NumericScore extends Extension
$sql = "SELECT id FROM images
WHERE EXTRACT(YEAR FROM posted) = :year
";
$args = ["limit" => $config->get_int("index_images"), "year" => $year];
$args = ["limit" => $config->get_int(IndexConfig::IMAGES), "year" => $year];
if ($event->page_matches("popular_by_day")) {
$sql .=