Remove unused App->force_max_items property
This commit is contained in:
parent
0c24532b42
commit
9537a6d0f7
|
@ -77,7 +77,6 @@ class App
|
||||||
public $sourcename = '';
|
public $sourcename = '';
|
||||||
public $videowidth = 425;
|
public $videowidth = 425;
|
||||||
public $videoheight = 350;
|
public $videoheight = 350;
|
||||||
public $force_max_items = 0;
|
|
||||||
public $theme_events_in_profile = true;
|
public $theme_events_in_profile = true;
|
||||||
public $queue;
|
public $queue;
|
||||||
|
|
||||||
|
|
|
@ -51,7 +51,6 @@ class Renderer
|
||||||
'sourcename' => '',
|
'sourcename' => '',
|
||||||
'videowidth' => 425,
|
'videowidth' => 425,
|
||||||
'videoheight' => 350,
|
'videoheight' => 350,
|
||||||
'force_max_items' => 0,
|
|
||||||
'stylesheet' => '',
|
'stylesheet' => '',
|
||||||
'template_engine' => 'smarty3',
|
'template_engine' => 'smarty3',
|
||||||
];
|
];
|
||||||
|
|
|
@ -234,12 +234,6 @@ class Community extends BaseModule
|
||||||
DI::config()->get('system', 'itemspage_network'));
|
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'])) {
|
if (!empty($_GET['item'])) {
|
||||||
$item = Item::selectFirst(['parent'], ['id' => $_GET['item']]);
|
$item = Item::selectFirst(['parent'], ['id' => $_GET['item']]);
|
||||||
self::$item_id = $item['parent'] ?? 0;
|
self::$item_id = $item['parent'] ?? 0;
|
||||||
|
|
|
@ -180,12 +180,6 @@ class Status extends BaseProfile
|
||||||
DI::config()->get('system', 'itemspage_network'));
|
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 = new Pager(DI::l10n(), $args->getQueryString(), $itemspage_network);
|
||||||
|
|
||||||
$pager_sql = sprintf(" LIMIT %d, %d ", $pager->getStart(), $pager->getItemsPerPage());
|
$pager_sql = sprintf(" LIMIT %d, %d ", $pager->getStart(), $pager->getItemsPerPage());
|
||||||
|
|
Loading…
Reference in New Issue
Block a user