X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fmanage.php;h=f81afb09a6e30e18ca2ba0bcecd23151adb2a7da;hb=6f3b2b65866a841e5e47b59dfa686d9c7d74f58d;hp=f2781f10815876dd412a320109c1ee9183eba9fc;hpb=e36f2bb1fb3439e9993c7568e57140c4f954b772;p=friendica.git diff --git a/mod/manage.php b/mod/manage.php index f2781f1081..f81afb09a6 100644 --- a/mod/manage.php +++ b/mod/manage.php @@ -1,10 +1,14 @@ user['nickname'] ); // NOTREACHED @@ -102,11 +128,11 @@ function manage_post(App $a) { function manage_content(App $a) { if (! local_user()) { - notice( t('Permission denied.') . EOL); + notice(L10n::t('Permission denied.') . EOL); return; } - if ($_GET['identity']) { + if (!empty($_GET['identity'])) { $_POST['identity'] = $_GET['identity']; manage_post($a); return; @@ -117,7 +143,7 @@ function manage_content(App $a) { //getting additinal information for each identity foreach ($identities as $key=>$id) { $thumb = q("SELECT `thumb` FROM `contact` WHERE `uid` = '%s' AND `self` = 1", - dbesc($id['uid']) + DBA::escape($id['uid']) ); $identities[$key]['thumb'] = $thumb[0]['thumb']; @@ -129,21 +155,21 @@ function manage_content(App $a) { $r = q("SELECT DISTINCT(`parent`) FROM `notify` WHERE `uid` = %d AND NOT `seen` AND NOT (`type` IN (%d, %d))", intval($id['uid']), intval(NOTIFY_INTRO), intval(NOTIFY_MAIL)); - if (DBM::is_result($r)) { + if (DBA::isResult($r)) { $notifications = sizeof($r); } $r = q("SELECT DISTINCT(`convid`) FROM `mail` WHERE `uid` = %d AND NOT `seen`", intval($id['uid'])); - if (DBM::is_result($r)) { + if (DBA::isResult($r)) { $notifications = $notifications + sizeof($r); } $r = q("SELECT COUNT(*) AS `introductions` FROM `intro` WHERE NOT `blocked` AND NOT `ignore` AND `uid` = %d", intval($id['uid'])); - if (DBM::is_result($r)) { + if (DBA::isResult($r)) { $notifications = $notifications + $r[0]["introductions"]; } @@ -151,11 +177,11 @@ function manage_content(App $a) { } $o = replace_macros(get_markup_template('manage.tpl'), [ - '$title' => t('Manage Identities and/or Pages'), - '$desc' => t('Toggle between different identities or community/group pages which share your account details or which you have been granted "manage" permissions'), - '$choose' => t('Select an identity to manage: '), + '$title' => L10n::t('Manage Identities and/or Pages'), + '$desc' => L10n::t('Toggle between different identities or community/group pages which share your account details or which you have been granted "manage" permissions'), + '$choose' => L10n::t('Select an identity to manage: '), '$identities' => $identities, - '$submit' => t('Submit'), + '$submit' => L10n::t('Submit'), ]); return $o;