Remove superfluous includes in profile modules

pull/8156/head
Hypolite Petovan 2020-01-23 10:00:48 -05:00
rodzic 02dda8af9b
commit 1fc1989f93
4 zmienionych plików z 1 dodań i 7 usunięć

Wyświetl plik

@ -25,8 +25,6 @@ use Friendica\Protocol\ActivityPub;
use Friendica\Util\DateTimeFormat;
use Friendica\Util\Temporal;
require_once 'boot.php';
class Index extends BaseModule
{
public static function rawContent(array $parameters = [])
@ -71,7 +69,6 @@ class Index extends BaseModule
$is_owner = local_user() == $a->profile_uid;
$o = '';
if (!empty($a->profile['hidewall']) && !$is_owner && !$remote_contact_id) {
throw new HTTPException\ForbiddenException(DI::l10n()->t('Access to this profile has been restricted.'));
}

Wyświetl plik

@ -19,8 +19,6 @@ use Friendica\Util\Security;
use Friendica\Util\Strings;
use Friendica\Util\XML;
require_once 'boot.php';
class Status extends BaseModule
{
public static function content(array $parameters = [])

Wyświetl plik

@ -12,8 +12,6 @@ use Friendica\Model\Profile as ProfileModel;
use Friendica\Network\HTTPException\ForbiddenException;
use Friendica\Util\DateTimeFormat;
require_once 'boot.php';
class Profile extends BaseModule
{
public static function rawContent(array $parameters = [])

Wyświetl plik

@ -13,6 +13,7 @@ use Psr\Log\LoggerInterface;
class PermissionSet extends BaseRepository
{
/** @var int Virtual permission set id for public permission */
const PUBLIC = 0;
protected static $table_name = 'permissionset';