mirror of
https://github.com/friendica/friendica
synced 2025-01-22 19:39:47 +00:00
Merge pull request #5346 from astifter/redirect_empty_group_to_contacts
Redirect empty group to /contacts.
This commit is contained in:
commit
3a179860e5
1 changed files with 4 additions and 0 deletions
|
@ -86,6 +86,10 @@ function group_content(App $a) {
|
||||||
|
|
||||||
// Switch to text mode interface if we have more than 'n' contacts or group members
|
// Switch to text mode interface if we have more than 'n' contacts or group members
|
||||||
|
|
||||||
|
if ($a->argc == 1) {
|
||||||
|
goaway(System::baseUrl() . '/contacts');
|
||||||
|
}
|
||||||
|
|
||||||
$switchtotext = PConfig::get(local_user(), 'system', 'groupedit_image_limit');
|
$switchtotext = PConfig::get(local_user(), 'system', 'groupedit_image_limit');
|
||||||
if (is_null($switchtotext)) {
|
if (is_null($switchtotext)) {
|
||||||
$switchtotext = Config::get('system', 'groupedit_image_limit', 400);
|
$switchtotext = Config::get('system', 'groupedit_image_limit', 400);
|
||||||
|
|
Loading…
Add table
Reference in a new issue