]> git.mxchange.org Git - friendica.git/blobdiff - mod/redir.php
Docs: add a note on adding `use` on theme.php
[friendica.git] / mod / redir.php
index 998e9cc0bd9bdac5a34195090074a3a429a267db..b7292384268a4bc21f94e62b4c242701e54bd4f9 100644 (file)
@@ -2,6 +2,7 @@
 
 use Friendica\App;
 use Friendica\Core\System;
+use Friendica\Database\DBM;
 
 function redir_init(App $a) {
 
@@ -21,7 +22,7 @@ function redir_init(App $a) {
                                intval(local_user())
                        );
 
-                       if (!dbm::is_result($r)) {
+                       if (!DBM::is_result($r)) {
                                goaway(System::baseUrl());
                        }
                        if ($r[0]['network'] !== NETWORK_DFRN) {
@@ -36,7 +37,7 @@ function redir_init(App $a) {
                                intval(local_user())
                        );
 
-                       if (!dbm::is_result($r)) {
+                       if (!DBM::is_result($r)) {
                                goaway(System::baseUrl());
                        }
                        if ($r[0]['network'] !== NETWORK_DFRN) {