friendica/mod/nogroup.php

29 lines
473 B
PHP
Raw Normal View History

<?php
/**
* @file mod/nogroup.php
*/
use Friendica\App;
use Friendica\Content\ContactSelector;
2018-01-21 18:33:59 +00:00
use Friendica\Core\L10n;
2017-11-08 03:57:46 +00:00
use Friendica\Database\DBM;
2017-12-07 14:04:24 +00:00
use Friendica\Model\Contact;
2017-12-09 18:45:17 +00:00
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()) {
2018-01-21 18:33:59 +00:00
notice(L10n::t('Permission denied.') . EOL);
return '';
}
goaway(System::baseUrl() . '/group/none');
}