X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fprofperm.php;h=0f864d42f3e2b8ca66ce83c31bf55787519e2c46;hb=bf0b98017decf73123891e935993f2921d3b0acf;hp=ee51906601b2c0fe5578bfeffc388694e23572ea;hpb=0c5cc291af58b5fa674a3c937bb2c9e3a496ee1c;p=friendica.git diff --git a/mod/profperm.php b/mod/profperm.php index ee51906601..0f864d42f3 100644 --- a/mod/profperm.php +++ b/mod/profperm.php @@ -4,6 +4,7 @@ */ use Friendica\App; use Friendica\Core\Config; +use Friendica\Core\L10n; use Friendica\Core\PConfig; use Friendica\Database\DBM; use Friendica\Model\Profile; @@ -24,16 +25,18 @@ function profperm_init(App $a) function profperm_content(App $a) { if (! local_user()) { - notice( t('Permission denied') . EOL); + notice(L10n::t('Permission denied') . EOL); return; } if($a->argc < 2) { - notice( t('Invalid profile identifier.') . EOL ); + notice(L10n::t('Invalid profile identifier.') . EOL ); return; } + $o = ''; + // Switch to text mod interface if we have more than 'n' contacts or group members $switchtotext = PConfig::get(local_user(),'system','groupedit_image_limit'); @@ -59,7 +62,7 @@ function profperm_content(App $a) { intval(local_user()) ); if (! DBM::is_result($r)) { - notice( t('Invalid profile identifier.') . EOL ); + notice(L10n::t('Invalid profile identifier.') . EOL ); return; } $profile = $r[0]; @@ -69,7 +72,7 @@ function profperm_content(App $a) { intval($a->argv[1]) ); - $ingroup = array(); + $ingroup = []; if (DBM::is_result($r)) foreach($r as $member) $ingroup[] = $member['id']; @@ -99,17 +102,17 @@ function profperm_content(App $a) { $members = $r; - $ingroup = array(); + $ingroup = []; if (DBM::is_result($r)) foreach($r as $member) $ingroup[] = $member['id']; } - $o .= '

' . t('Profile Visibility Editor') . '

'; + $o .= '

' . L10n::t('Profile Visibility Editor') . '

'; - $o .= '

' . t('Profile') . ' \'' . $profile['profile-name'] . '\'

'; + $o .= '

' . L10n::t('Profile') . ' \'' . $profile['profile-name'] . '\'

'; - $o .= '
' . t('Click on a contact to add or remove.') . '
'; + $o .= '
' . L10n::t('Click on a contact to add or remove.') . '
'; } @@ -118,7 +121,7 @@ function profperm_content(App $a) { $o = ''; $o .= '
'; - $o .= '

' . t('Visible To') . '

'; + $o .= '

' . L10n::t('Visible To') . '

'; $o .= '
'; $o .= '
'; @@ -134,7 +137,7 @@ function profperm_content(App $a) { $o .= '
'; $o .= '
'; - $o .= '

' . t("All Contacts \x28with secure profile access\x29") . '

'; + $o .= '

' . L10n::t("All Contacts \x28with secure profile access\x29") . '

'; $o .= '
'; $o .= '
'; @@ -164,4 +167,3 @@ function profperm_content(App $a) { return $o; } -