X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fuexport.php;h=993e398025fb5301b13f204dd09b23b83cfbbaeb;hb=bf878d2ebb6156b27efa9c81a6f0d10fd632922f;hp=5881817b300e962a300e6a9514da281332bbe61a;hpb=e36f2bb1fb3439e9993c7568e57140c4f954b772;p=friendica.git diff --git a/mod/uexport.php b/mod/uexport.php index 5881817b30..993e398025 100644 --- a/mod/uexport.php +++ b/mod/uexport.php @@ -1,8 +1,12 @@ System::baseUrl(), - '$title' => t('Export personal data'), + '$title' => L10n::t('Export personal data'), '$options' => $options ]); } @@ -53,7 +57,7 @@ function uexport_content(App $a) { function _uexport_multirow($query) { $result = []; $r = q($query); - if (DBM::is_result($r)) { + if (DBA::isResult($r)) { foreach ($r as $rr) { $p = []; foreach ($rr as $k => $v) { @@ -68,7 +72,7 @@ function _uexport_multirow($query) { function _uexport_row($query) { $result = []; $r = q($query); - if (DBM::is_result($r)) { + if (DBA::isResult($r)) { foreach ($r as $rr) { foreach ($rr as $k => $v) { $result[$k] = $v; @@ -137,10 +141,11 @@ function uexport_all(App $a) { uexport_account($a); echo "\n"; + $total = 0; $r = q("SELECT count(*) as `total` FROM `item` WHERE `uid` = %d ", intval(local_user()) ); - if (DBM::is_result($r)) { + if (DBA::isResult($r)) { $total = $r[0]['total']; } // chunk the output to avoid exhausting memory