]> git.mxchange.org Git - friendica.git/commitdiff
Remove unused App->force_max_items property
authorHypolite Petovan <hypolite@mrpetovan.com>
Tue, 13 Oct 2020 03:58:18 +0000 (23:58 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Tue, 13 Oct 2020 11:52:13 +0000 (07:52 -0400)
src/App.php
src/Core/Renderer.php
src/Module/Conversation/Community.php
src/Module/Profile/Status.php

index adb4e55ae7103edef94596f79abe10e369af3e84..c69abf212748239dbb1cba3a5890eca8736426d4 100644 (file)
@@ -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;
 
index 24f00341733530a24d097a1a1bf01f00049bda94..1ccad740bdecedcb3807cc454747413727a7256f 100644 (file)
@@ -51,7 +51,6 @@ class Renderer
                'sourcename' => '',
                'videowidth' => 425,
                'videoheight' => 350,
-               'force_max_items' => 0,
                'stylesheet' => '',
                'template_engine' => 'smarty3',
        ];
index 5ce76bd1747e4ae609036874d6aeda37ff1b7934..b37ab69848cdde1ea64377ff2a8814373f104823 100644 (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;
index fbc287e6a88529f5e058a59b616622bbccb6ac08..ccb1d9eef4641b22ac783074b51b76853dfcfbb4 100644 (file)
@@ -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());