mirror of
https://github.com/friendica/friendica
synced 2024-12-23 15:20:17 +00:00
28 lines
466 B
PHP
28 lines
466 B
PHP
<?php
|
|
/**
|
|
* @file mod/nogroup.php
|
|
*/
|
|
use Friendica\App;
|
|
use Friendica\Content\ContactSelector;
|
|
use Friendica\Core\L10n;
|
|
use Friendica\Database\DBA;
|
|
use Friendica\Model\Contact;
|
|
use Friendica\Model\Group;
|
|
use Friendica\Core\System;
|
|
|
|
function nogroup_init(App $a)
|
|
{
|
|
if (! local_user()) {
|
|
return;
|
|
}
|
|
}
|
|
|
|
function nogroup_content(App $a)
|
|
{
|
|
if (! local_user()) {
|
|
notice(L10n::t('Permission denied.') . EOL);
|
|
return '';
|
|
}
|
|
|
|
$a->internalRedirect('group/none');
|
|
}
|