]> git.mxchange.org Git - friendica-addons.git/blobdiff - group_text/group_text.php
Merge branch '3.6-rc'
[friendica-addons.git] / group_text / group_text.php
index 4c0cb14a9a3aeb211ae2626fbecedcb14323f9f9..d07d8aa56bcbb3f0517537cd30034acfc41c02db 100644 (file)
@@ -41,7 +41,7 @@ function group_text_uninstall() {
 function group_text_settings_post($a,$post) {
        if(! local_user() || (! x($_POST,'group_text-submit')))
                return;
-       PConfig::set(local_user(),'system','groupedit_image_limit',intval($_POST['group_text']));
+       set_pconfig(local_user(),'system','groupedit_image_limit',intval($_POST['group_text']));
 
        info(L10n::t('Group Text settings updated.') . EOL);
 }
@@ -67,7 +67,7 @@ function group_text_settings(&$a,&$s) {
 
        /* Get the current state of our config variable */
 
-       $enabled = PConfig::get(local_user(),'system','groupedit_image_limit');
+       $enabled = get_pconfig(local_user(),'system','groupedit_image_limit');
        $checked = (($enabled) ? ' checked="checked" ' : '');
 
        /* Add some HTML to the existing form */