]> git.mxchange.org Git - friendica-addons.git/blobdiff - showmore_dyn/showmore_dyn.php
[twitter] Fix return value of twitter_user_to_contact()
[friendica-addons.git] / showmore_dyn / showmore_dyn.php
index 41de11a3f8f30671abd23a37b6196a20b2b5cd71..32aedb08061635275dd015a48113cd6b2357cf5d 100644 (file)
@@ -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);
                }
@@ -61,8 +61,7 @@ function showmore_dyn_settings(App &$a, &$o)
        $o .= Renderer::replaceMacros($t, [
                '$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'],
        ]);
 
 }