From 9537a6d0f7e24f16f02de2b754ae7c24c43493b6 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Mon, 12 Oct 2020 23:58:18 -0400 Subject: [PATCH] Remove unused App->force_max_items property --- src/App.php | 1 - src/Core/Renderer.php | 1 - src/Module/Conversation/Community.php | 6 ------ src/Module/Profile/Status.php | 6 ------ 4 files changed, 14 deletions(-) diff --git a/src/App.php b/src/App.php index adb4e55ae..c69abf212 100644 --- a/src/App.php +++ b/src/App.php @@ -77,7 +77,6 @@ class App public $sourcename = ''; public $videowidth = 425; public $videoheight = 350; - public $force_max_items = 0; public $theme_events_in_profile = true; public $queue; diff --git a/src/Core/Renderer.php b/src/Core/Renderer.php index 24f003417..1ccad740b 100644 --- a/src/Core/Renderer.php +++ b/src/Core/Renderer.php @@ -51,7 +51,6 @@ class Renderer 'sourcename' => '', 'videowidth' => 425, 'videoheight' => 350, - 'force_max_items' => 0, 'stylesheet' => '', 'template_engine' => 'smarty3', ]; diff --git a/src/Module/Conversation/Community.php b/src/Module/Conversation/Community.php index 5ce76bd17..b37ab6984 100644 --- a/src/Module/Conversation/Community.php +++ b/src/Module/Conversation/Community.php @@ -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; diff --git a/src/Module/Profile/Status.php b/src/Module/Profile/Status.php index fbc287e6a..ccb1d9eef 100644 --- a/src/Module/Profile/Status.php +++ b/src/Module/Profile/Status.php @@ -180,12 +180,6 @@ class Status extends BaseProfile 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 (($a->force_max_items > 0) && ($a->force_max_items < $itemspage_network)) { - $itemspage_network = $a->force_max_items; - } - $pager = new Pager(DI::l10n(), $args->getQueryString(), $itemspage_network); $pager_sql = sprintf(" LIMIT %d, %d ", $pager->getStart(), $pager->getItemsPerPage());