X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fgroup.php;h=ca163902ca685d127ca4163eaaf11123428980c6;hb=969cd145ce0e717399dbfff6cbc1a45342206e1a;hp=2d7ea8c11372bc56444c6661f402789cf4365440;hpb=19ccd658ebcf13a7cc208a3e460e44d152dda32f;p=friendica.git diff --git a/mod/group.php b/mod/group.php index 2d7ea8c113..ca163902ca 100644 --- a/mod/group.php +++ b/mod/group.php @@ -7,7 +7,7 @@ function validate_members(&$item) { function group_init(&$a) { if(local_user()) { require_once('include/group.php'); - $a->page['aside'] = group_side(); + $a->page['aside'] = group_side('contacts','group',false,(($a->argc > 1) ? intval($a->argv[1]) : 0)); } } @@ -68,6 +68,14 @@ function group_content(&$a) { return; } + // Switch to text mod interface if we have more than 'n' contacts or group members + + $switchtotext = get_pconfig(local_user(),'system','groupedit_image_limit'); + if($switchtotext === false) + $switchtotext = get_config('system','groupedit_image_limit'); + if($switchtotext === false) + $switchtotext = 400; + if(($a->argc == 2) && ($a->argv[1] === 'new')) { $tpl = get_markup_template('group_new.tpl'); $o .= replace_macros($tpl,array( @@ -168,12 +176,13 @@ function group_content(&$a) { if($change) $o = ''; - $o .= '