Remove unused App->force_max_items property

This commit is contained in:
Hypolite Petovan 2020-10-12 23:58:18 -04:00
parent 0c24532b42
commit 9537a6d0f7
4 changed files with 0 additions and 14 deletions

View file

@ -234,12 +234,6 @@ class Community extends BaseModule
DI::config()->get('system', 'itemspage_network'));
}
// now that we have the user settings, see if the theme forces
// a maximum item number which is lower then the user choice
if ((DI::app()->force_max_items > 0) && (DI::app()->force_max_items < self::$itemsPerPage)) {
self::$itemsPerPage = DI::app()->force_max_items;
}
if (!empty($_GET['item'])) {
$item = Item::selectFirst(['parent'], ['id' => $_GET['item']]);
self::$item_id = $item['parent'] ?? 0;