X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fprofperm.php;h=0f864d42f3e2b8ca66ce83c31bf55787519e2c46;hb=9e700ba6ea548eba782e4304d22962ab5ca3b987;hp=0a3cfd5b1844c0edb97d2113c8e8be56449052d8;hpb=4fb2547df87825c136d3ee080bc6960f5c957c65;p=friendica.git diff --git a/mod/profperm.php b/mod/profperm.php index 0a3cfd5b18..0f864d42f3 100644 --- a/mod/profperm.php +++ b/mod/profperm.php @@ -4,8 +4,10 @@ */ use Friendica\App; use Friendica\Core\Config; +use Friendica\Core\L10n; use Friendica\Core\PConfig; use Friendica\Database\DBM; +use Friendica\Model\Profile; function profperm_init(App $a) { @@ -23,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'); @@ -58,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]; @@ -68,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']; @@ -98,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.') . '
'; } @@ -117,7 +121,7 @@ function profperm_content(App $a) { $o = ''; $o .= '
'; - $o .= '

' . t('Visible To') . '

'; + $o .= '

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

'; $o .= '
'; $o .= '
'; @@ -133,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 .= '
'; @@ -163,4 +167,3 @@ function profperm_content(App $a) { return $o; } -