mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-10 18:38:49 +00:00
#8374: Using sub-templates for input field
This commit is contained in:
parent
1360efc930
commit
4d3aed3095
2 changed files with 3 additions and 6 deletions
|
@ -41,7 +41,7 @@ function showmore_dyn_settings_post()
|
|||
}
|
||||
|
||||
if (isset($_POST['showmore_dyn-submit'])) {
|
||||
$limitHeight = $_POST['showmore_dyn_height'];
|
||||
$limitHeight = $_POST['limitHeight'];
|
||||
if ($limitHeight && is_numeric($limitHeight)) {
|
||||
DI::pConfig()->set(local_user(), 'showmore_dyn', 'limitHeight', $limitHeight);
|
||||
}
|
||||
|
@ -62,7 +62,7 @@ function showmore_dyn_settings(App &$a, &$o)
|
|||
'$submit' => DI::l10n()->t('Save Settings'),
|
||||
'$title' => 'Showmore Dynamic',
|
||||
'$label' => DI::l10n()->t('Limit Height'),
|
||||
'$limitHeight' => $limitHeight,
|
||||
'$limitHeight' => ['limitHeight', DI::l10n()->t('Limit Height'), $limitHeight, 'The maximal height of posts when collapsed', '', '', 'number'],
|
||||
]);
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue