X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fmanage.php;h=f81afb09a6e30e18ca2ba0bcecd23151adb2a7da;hb=8841519c0dfae069aff6bee6325fa868e4b9b641;hp=dde08d3facf088abb3173029385b36c6932a1357;hpb=745bc7cf3f3990a8887fcc806a16d218f82e35db;p=friendica.git diff --git a/mod/manage.php b/mod/manage.php index dde08d3fac..f81afb09a6 100644 --- a/mod/manage.php +++ b/mod/manage.php @@ -1,11 +1,14 @@ $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']; @@ -130,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"]; } @@ -152,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;