]> git.mxchange.org Git - friendica.git/blobdiff - mod/redir.php
Rename Friendica\Database\dba to Friendica\Database\DBA
[friendica.git] / mod / redir.php
index 8f112a3c5d24938d83d8dd4b16df8ff14f6ff332..20e2050764a3890420f68c0b529da7f8e1d3501f 100644 (file)
@@ -3,7 +3,7 @@
 use Friendica\App;
 use Friendica\Core\L10n;
 use Friendica\Core\System;
-use Friendica\Database\dba;
+use Friendica\Database\DBA;
 use Friendica\Database\DBM;
 use Friendica\Model\Contact;
 use Friendica\Model\Profile;
@@ -24,7 +24,7 @@ function redir_init(App $a) {
 
        if (!empty($cid)) {
                $fields = ['id', 'uid', 'nurl', 'url', 'addr', 'name', 'network', 'poll', 'issued-id', 'dfrn-id', 'duplex'];
-               $contact = dba::selectFirst('contact', $fields, ['id' => $cid, 'uid' => [0, local_user()]]);
+               $contact = DBA::selectFirst('contact', $fields, ['id' => $cid, 'uid' => [0, local_user()]]);
                if (!DBM::is_result($contact)) {
                        notice(L10n::t('Contact not found.'));
                        goaway(System::baseUrl());
@@ -42,7 +42,7 @@ function redir_init(App $a) {
                if ($contact['uid'] == 0 && local_user()) {
                        // Let's have a look if there is an established connection
                        // between the puplic contact we have found and the local user.
-                       $contact = dba::selectFirst('contact', $fields, ['nurl' => $contact['nurl'], 'uid' => local_user()]);
+                       $contact = DBA::selectFirst('contact', $fields, ['nurl' => $contact['nurl'], 'uid' => local_user()]);
 
                        if (DBM::is_result($contact)) {
                                $cid = $contact['id'];
@@ -96,7 +96,7 @@ function redir_init(App $a) {
 
                        $fields = ['uid' => local_user(), 'cid' => $cid, 'dfrn_id' => $dfrn_id,
                                'sec' => $sec, 'expire' => time() + 45];
-                       dba::insert('profile_check', $fields);
+                       DBA::insert('profile_check', $fields);
 
                        logger('mod_redir: ' . $contact['name'] . ' ' . $sec, LOGGER_DEBUG);