Many more app-variables removed

This commit is contained in:
Michael 2021-07-24 10:09:39 +00:00
parent e05c1821c2
commit 2502a9192d
30 changed files with 310 additions and 401 deletions

View file

@ -39,11 +39,9 @@ class BaseProfile extends BaseModule
* @return string
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
*/
public static function getTabsHTML(App $a, string $current, bool $is_owner, string $nickname = null)
public static function getTabsHTML(App $a, string $current, bool $is_owner, array $profile)
{
if (is_null($nickname)) {
$nickname = $a->user['nickname'];
}
$nickname = $profile['nickname'];
$baseProfileUrl = DI::baseUrl() . '/profile/' . $nickname;
@ -116,7 +114,7 @@ class BaseProfile extends BaseModule
];
}
if (empty($a->profile['hide-friends'])) {
if (empty($profile['hide-friends'])) {
$tabs[] = [
'label' => DI::l10n()->t('Contacts'),
'url' => $baseProfileUrl . '/contacts',