]> git.mxchange.org Git - friendica.git/commitdiff
PHPStan: Fix missing requires/namespaces
authorHypolite Petovan <mrpetovan@gmail.com>
Sun, 17 Dec 2017 20:24:57 +0000 (15:24 -0500)
committerHypolite Petovan <mrpetovan@gmail.com>
Sun, 17 Dec 2017 20:26:43 +0000 (15:26 -0500)
35 files changed:
src/App.php
src/Content/ForumManager.php
src/Core/Cache.php
src/Core/Config.php
src/Core/NotificationsManager.php
src/Core/PConfig.php
src/Core/Worker.php
src/Database/DBM.php
src/Database/DBStructure.php
src/Model/Contact.php
src/Model/GContact.php
src/Model/Group.php
src/Model/Photo.php
src/Model/User.php
src/Network/FKOAuthDataStore.php
src/Network/Probe.php
src/Object/Post.php
src/ParseUrl.php
src/Protocol/DFRN.php
src/Protocol/Diaspora.php
src/Protocol/Feed.php
src/Protocol/OStatus.php
src/Protocol/PortableContact.php
src/Util/ExAuth.php
src/Util/Lock.php
src/Util/Pidfile.php
src/Util/XML.php
src/Worker/Cron.php
src/Worker/CronJobs.php
src/Worker/DBClean.php
src/Worker/Expire.php
src/Worker/Notifier.php
src/Worker/OnePoll.php
src/Worker/Queue.php
src/Worker/RemoveContact.php

index 3e34d3c5a9e76c824e91f329d1c4afc69bd755a4..adea01a037e969ac76c5d83410efe298d62615ff 100644 (file)
@@ -14,6 +14,9 @@ use Detection\MobileDetect;
 
 use Exception;
 
+require_once 'boot.php';
+require_once 'include/dba.php';
+
 /**
  *
  * class: App
index d619db42b21cd9c774390ab0f797064b864d9843..d800a0bd8b4050504644713fa881b7b0bce93b4c 100644 (file)
@@ -11,6 +11,8 @@ use Friendica\Core\System;
 use Friendica\Database\DBM;
 use dba;
 
+require_once 'include/dba.php';
+
 /**
  * @brief This class handles methods related to the forum functionality
  */
index eb58811e2c9d9e5c3ea9896a74290754d3d2c736..4da097ce2a0c490433686ecff7df3efa5a237050 100644 (file)
@@ -9,6 +9,8 @@ use Friendica\Core\PConfig;
 use Friendica\Database\DBM;
 use dba;
 
+require_once 'include/dba.php';
+
 /**
  * @brief Class for storing data for a short time
  */
@@ -32,7 +34,7 @@ class Cache
                $memcache_host = Config::get('system', 'memcache_host', '127.0.0.1');
                $memcache_port = Config::get('system', 'memcache_port', 11211);
 
-               $memcache = new Memcache;
+               $memcache = new \Memcache;
 
                if (!$memcache->connect($memcache_host, $memcache_port)) {
                        return false;
index d3daece159e1863c94357692409e1fef76bb5a65..2515116a9bdef7b01be4bea1eec18b0949047fe5 100644 (file)
@@ -11,6 +11,8 @@ namespace Friendica\Core;
 use Friendica\Database\DBM;
 use dba;
 
+require_once 'include/dba.php';
+
 /**
  * @brief Arbitrary sytem configuration storage
  *
index 9adac10c921b6b98af1c0b7922ba318c2a44609e..7b9dba8963f92b52c3a3a23809eca025068e2081 100644 (file)
@@ -6,11 +6,12 @@
  */
 namespace Friendica\Core;
 
-use Friendica\Core\Pconfig;
+use Friendica\Core\PConfig;
 use Friendica\Core\System;
 use Friendica\Database\DBM;
 use Friendica\Model\Contact;
 
+require_once 'include/dba.php';
 require_once 'include/html2plain.php';
 require_once 'include/datetime.php';
 require_once 'include/bbcode.php';
index 3467032fa2ce6ddb46d71443bb66ce4c3bd020c0..bf84a4b8f77b417ef3f28208292d1b4d00ee08a7 100644 (file)
@@ -7,6 +7,8 @@ namespace Friendica\Core;
 use Friendica\Database\DBM;
 use dba;
 
+require_once 'include/dba.php';
+
 /**
  * @file include/Core/PConfig.php
  * @brief contains the class with methods for the management
index 2e7bb483e8a170813cc7e017c3550338334804e5..760b40b1d30eb19adb742d85b8077fe385d5e730 100644 (file)
@@ -13,6 +13,8 @@ use Friendica\Util\Lock;
 
 use dba;
 
+require_once 'include/dba.php';
+
 /**
  * @file src/Core/Worker.php
  *
index 7b52c0a552c4817d3b39e23d9ddb261839f461f0..e59249e1b9b266b66429949930361229e9e7b415 100644 (file)
@@ -6,6 +6,8 @@ namespace Friendica\Database;
 
 use dba;
 
+require_once 'include/dba.php';
+
 /**
  * @brief This class contain functions for the database management
  *
index 7a6c3eaa70487b9c11ea9535761df9e060fd1b2c..c5bd3e99bc59c64d6d37c8a13e94abf7e45ce7bf 100644 (file)
@@ -9,6 +9,8 @@ use Friendica\Database\DBM;
 use dba;
 
 require_once "boot.php";
+require_once 'include/dba.php';
+require_once 'include/enotify.php';
 require_once "include/text.php";
 
 /**
@@ -565,7 +567,7 @@ class DBStructure {
        private static function createIndex($indexname, $fieldnames, $method = "ADD") {
                $method = strtoupper(trim($method));
                if ($method!="" && $method!="ADD") {
-                       throw new Exception("Invalid parameter 'method' in self::createIndex(): '$method'");
+                       throw new \Exception("Invalid parameter 'method' in self::createIndex(): '$method'");
                }
 
                if ($fieldnames[0] == "UNIQUE") {
index 2203b62162372e482e084e5eb0607a4a41b8720f..aec417a65da990591bc61b26521aba5f5acb360b 100644 (file)
@@ -20,6 +20,7 @@ use Friendica\Protocol\Salmon;
 use dba;
 
 require_once 'boot.php';
+require_once 'include/dba.php';
 require_once 'include/text.php';
 
 /**
index 1b846b31716c04600e3576557205febb4a4b2184..56221244813c6e584bb9f6566732c868450f7da7 100644 (file)
@@ -17,6 +17,7 @@ use dba;
 use Exception;
 
 require_once 'include/datetime.php';
+require_once 'include/dba.php';
 require_once 'include/network.php';
 require_once 'include/html2bbcode.php';
 
index 9251bc49ded9c6dba29b23b90cd134b0e74d141d..209c78798bb430e78ee48d7bc54a8841ff034570 100644 (file)
@@ -11,6 +11,7 @@ use Friendica\Database\DBM;
 use dba;
 
 require_once 'boot.php';
+require_once 'include/dba.php';
 require_once 'include/text.php';
 
 /**
index 229f22107717c268a9a60328c1748a92d2a081e2..0fbeb66cbb06c74739eeed1c976adb4d1acab358 100644 (file)
@@ -12,7 +12,9 @@ use Friendica\Database\DBM;
 use Friendica\Object\Image;
 use dba;
 
+require_once 'include/dba.php';
 require_once "include/photos.php";
+
 /**
  * Class to handle photo dabatase table
  */
index d09d670a4bffffb5b85dbcfb560962e1c31145de..9762727acae86d98e4a11ec14ad2ab2faa351125 100644 (file)
@@ -21,6 +21,7 @@ use Exception;
 
 require_once 'boot.php';
 require_once 'include/crypto.php';
+require_once 'include/dba.php';
 require_once 'include/enotify.php';
 require_once 'include/network.php';
 require_once 'library/openid.php';
@@ -186,7 +187,7 @@ class User
                                $_SESSION['register'] = 1;
                                $_SESSION['openid'] = $openid_url;
 
-                               $openid = new LightOpenID;
+                               $openid = new \LightOpenID;
                                $openid->identity = $openid_url;
                                $openid->returnUrl = System::baseUrl() . '/openid';
                                $openid->required = array('namePerson/friendly', 'contact/email', 'namePerson');
index d7fa14518903b981bb8cbf0f470ee13faf5a8f19..e8f580c58a2d508ec284dbc70ac5c40ee6a483f8 100644 (file)
@@ -17,6 +17,8 @@ use OAuthDataStore;
 define('REQUEST_TOKEN_DURATION', 300);
 define('ACCESS_TOKEN_DURATION', 31536000);
 
+require_once 'include/dba.php';
+
 require_once "library/OAuth1.php";
 require_once "library/oauth2-php/lib/OAuth2.inc";
 
@@ -45,7 +47,7 @@ class FKOAuthDataStore extends OAuthDataStore
                $r = dba::inArray($r);
 
                if (DBM::is_result($r)) {
-                       return new OAuthConsumer($r[0]['client_id'], $r[0]['pw'], $r[0]['redirect_uri']);
+                       return new \OAuthConsumer($r[0]['client_id'], $r[0]['pw'], $r[0]['redirect_uri']);
                }
 
                return null;
@@ -65,7 +67,7 @@ class FKOAuthDataStore extends OAuthDataStore
                $r = dba::inArray($s);
 
                if (DBM::is_result($r)) {
-                       $ot=new OAuthToken($r[0]['id'], $r[0]['secret']);
+                       $ot = new \OAuthToken($r[0]['id'], $r[0]['secret']);
                        $ot->scope = $r[0]['scope'];
                        $ot->expires = $r[0]['expires'];
                        $ot->uid = $r[0]['uid'];
@@ -87,7 +89,7 @@ class FKOAuthDataStore extends OAuthDataStore
                $r = dba::select('tokens', ['id', 'secret'], ['client_id' => $consumer->key, 'id' => $nonce, 'expires' => $timestamp], ['limit' => 1]);
                                
                if (DBM::is_result($r)) {
-                       return new OAuthToken($r['id'], $r['secret']);
+                       return new \OAuthToken($r['id'], $r['secret']);
                }
 
                return null;
@@ -124,7 +126,7 @@ class FKOAuthDataStore extends OAuthDataStore
                        return null;
                }
 
-               return new OAuthToken($key, $sec);
+               return new \OAuthToken($key, $sec);
        }
 
        /**
@@ -163,7 +165,7 @@ class FKOAuthDataStore extends OAuthDataStore
                        );
 
                        if ($r) {
-                               $ret = new OAuthToken($key, $sec);
+                               $ret = new \OAuthToken($key, $sec);
                        }
                }
 
index 7955961838f08001d33483296bb42b78fbe869bf..56abbb7fdc3905d8edbeb96b828bd92fd2426c75 100644 (file)
@@ -20,9 +20,10 @@ use Friendica\Protocol\Feed;
 use Friendica\Util\XML;
 
 use dba;
-use DomXPath;
+use DOMXPath;
 use DOMDocument;
 
+require_once 'include/dba.php';
 require_once 'include/network.php';
 require_once "include/crypto.php";
 
index 902435b513a004056bf3d7c0b6c73f710fd3bc08..f3315388735a9210635ae7f534a061737d6d6bef 100644 (file)
@@ -11,6 +11,7 @@ use Friendica\Database\DBM;
 use Friendica\Model\Contact;
 use dba;
 
+require_once 'include/dba.php';
 require_once 'include/text.php';
 require_once 'boot.php';
 require_once 'include/conversation.php';
index 35557067d7474ca4d7d85d522c0b1847fc33977a..c2c01b8aebede52a691aec790f4aef65e294c7e9 100644 (file)
@@ -10,9 +10,10 @@ use Friendica\Object\Image;
 use Friendica\Util\XML;
 
 use dba;
-use DomXPath;
+use DOMXPath;
 use DOMDocument;
 
+require_once 'include/dba.php';
 require_once "include/network.php";
 require_once "include/oembed.php";
 
@@ -215,7 +216,7 @@ class ParseUrl
                XML::deleteNode($doc, "ol");
                XML::deleteNode($doc, "ul");
 
-               $xpath = new DomXPath($doc);
+               $xpath = new DOMXPath($doc);
 
                $list = $xpath->query("//meta[@content]");
                foreach ($list as $node) {
index 62ada9620ae902f7214dceaac15a840b593449fa..e9df29625854379eee2910fcd0219beb981e8b91 100644 (file)
@@ -8,7 +8,6 @@
  */
 namespace Friendica\Protocol;
 
-use Friendica\App;
 use Friendica\Core\Config;
 use Friendica\Core\System;
 use Friendica\Core\Worker;
@@ -22,8 +21,10 @@ use Friendica\Util\XML;
 
 use dba;
 use DOMDocument;
-use DomXPath;
+use DOMXPath;
 
+require_once 'boot.php';
+require_once 'include/dba.php';
 require_once "include/enotify.php";
 require_once "include/threads.php";
 require_once "include/items.php";
@@ -1298,7 +1299,7 @@ class DFRN
                                case 2:
                                        // RINO 2 based on php-encryption
                                        try {
-                                               $key = \Crypto::createNewRandomKey();
+                                               $key = \Crypto::CreateNewRandomKey();
                                        } catch (\CryptoTestFailedException $ex) {
                                                logger('Cannot safely create a key');
                                                return -4;
@@ -1307,7 +1308,7 @@ class DFRN
                                                return -5;
                                        }
                                        try {
-                                               $data = \Crypto::encrypt($postvars['data'], $key);
+                                               $data = \Crypto::Encrypt($postvars['data'], $key);
                                        } catch (\CryptoTestFailedException $ex) {
                                                logger('Cannot safely perform encryption');
                                                return -6;
@@ -2505,13 +2506,13 @@ class DFRN
 
                        $item['body'] = oembed_html2bbcode($item['body']);
 
-                       $config = HTMLPurifier_Config::createDefault();
+                       $config = \HTMLPurifier_Config::createDefault();
                        $config->set('Cache.DefinitionImpl', null);
 
                        // we shouldn't need a whitelist, because the bbcode converter
                        // will strip out any unsupported tags.
 
-                       $purifier = new HTMLPurifier($config);
+                       $purifier = new \HTMLPurifier($config);
                        $item['body'] = $purifier->purify($item['body']);
 
                        $item['body'] = @html2bbcode($item['body']);
@@ -2977,7 +2978,7 @@ class DFRN
                $doc = new DOMDocument();
                @$doc->loadXML($xml);
 
-               $xpath = new DomXPath($doc);
+               $xpath = new DOMXPath($doc);
                $xpath->registerNamespace("atom", NAMESPACE_ATOM1);
                $xpath->registerNamespace("thr", NAMESPACE_THREAD);
                $xpath->registerNamespace("at", NAMESPACE_TOMB);
index 5c6d1a2c0699552936d6540f3b23b14f930284b0..9090e4b6b283f0e16908deac9dbcc9e352a2e3fb 100644 (file)
@@ -27,6 +27,7 @@ use Friendica\Util\XML;
 use dba;
 use SimpleXMLElement;
 
+require_once 'include/dba.php';
 require_once 'include/items.php';
 require_once 'include/bb2diaspora.php';
 require_once 'include/datetime.php';
index c33852a7d5c70a263f1f7f1cdc2b605eb0d8b7eb..629c2bfdd0e0c5d6b265c996dd1b437d68f29cf5 100644 (file)
@@ -10,10 +10,11 @@ use Friendica\Database\DBM;
 use Friendica\Core\System;
 use dba;
 use DOMDocument;
-use DomXPath;
+use DOMXPath;
 
-require_once("include/html2bbcode.php");
-require_once("include/items.php");
+require_once 'include/dba.php';
+require_once 'include/html2bbcode.php';
+require_once 'include/items.php';
 
 /**
  * @brief This class contain functions to import feeds
@@ -55,7 +56,7 @@ class Feed {
 
                $doc = new DOMDocument();
                @$doc->loadXML(trim($xml));
-               $xpath = new DomXPath($doc);
+               $xpath = new DOMXPath($doc);
                $xpath->registerNamespace('atom', NAMESPACE_ATOM1);
                $xpath->registerNamespace('dc', "http://purl.org/dc/elements/1.1/");
                $xpath->registerNamespace('content', "http://purl.org/rss/1.0/modules/content/");
index 2a021c89e9a3dac70fdb5cd42d857c1b6725a697..cadc9a37ea59df4618090ca9de53c2c925b287ff 100644 (file)
@@ -17,8 +17,9 @@ use Friendica\Util\Lock;
 use Friendica\Util\XML;
 use dba;
 use DOMDocument;
-use DomXPath;
+use DOMXPath;
 
+require_once 'include/dba.php';
 require_once 'include/threads.php';
 require_once 'include/html2bbcode.php';
 require_once 'include/bbcode.php';
@@ -251,7 +252,7 @@ class OStatus
                $doc = new DOMDocument();
                @$doc->loadXML($xml);
 
-               $xpath = new DomXPath($doc);
+               $xpath = new DOMXPath($doc);
                $xpath->registerNamespace('atom', NAMESPACE_ATOM1);
                $xpath->registerNamespace('thr', NAMESPACE_THREAD);
                $xpath->registerNamespace('georss', NAMESPACE_GEORSS);
@@ -329,7 +330,7 @@ class OStatus
                $doc = new DOMDocument();
                @$doc->loadXML($xml);
 
-               $xpath = new DomXPath($doc);
+               $xpath = new DOMXPath($doc);
                $xpath->registerNamespace('atom', NAMESPACE_ATOM1);
                $xpath->registerNamespace('thr', NAMESPACE_THREAD);
                $xpath->registerNamespace('georss', NAMESPACE_GEORSS);
@@ -739,7 +740,7 @@ class OStatus
                        if (!@$doc->loadHTML($conversation_data['body'])) {
                                return;
                        }
-                       $xpath = new DomXPath($doc);
+                       $xpath = new DOMXPath($doc);
 
                        $links = $xpath->query('//link');
                        if ($links) {
@@ -779,7 +780,7 @@ class OStatus
                $doc = new DOMDocument();
                @$doc->loadXML($xml);
 
-               $xpath = new DomXPath($doc);
+               $xpath = new DOMXPath($doc);
                $xpath->registerNamespace('atom', NAMESPACE_ATOM1);
                $xpath->registerNamespace('thr', NAMESPACE_THREAD);
                $xpath->registerNamespace('ostatus', NAMESPACE_OSTATUS);
@@ -929,7 +930,7 @@ class OStatus
                        if (!@$doc->loadHTML($related_data['body'])) {
                                return;
                        }
-                       $xpath = new DomXPath($doc);
+                       $xpath = new DOMXPath($doc);
 
                        $atom_file = '';
 
index 2b37a99624dab2cd5e5fe897697aefa065b6e9a8..727cce4e1e2a1661aa74dfa0df078606446364ee 100644 (file)
@@ -17,9 +17,10 @@ use Friendica\Model\Profile;
 use Friendica\Network\Probe;
 use dba;
 use DOMDocument;
-use DomXPath;
+use DOMXPath;
 use Exception;
 
+require_once 'include/dba.php';
 require_once 'include/datetime.php';
 require_once 'include/network.php';
 require_once 'include/html2bbcode.php';
@@ -512,7 +513,7 @@ class PortableContact
                $doc = new DOMDocument();
                @$doc->loadXML($feedret["body"]);
 
-               $xpath = new DomXPath($doc);
+               $xpath = new DOMXPath($doc);
                $xpath->registerNamespace('atom', "http://www.w3.org/2005/Atom");
 
                $entries = $xpath->query('/atom:feed/atom:entry');
@@ -768,7 +769,7 @@ class PortableContact
 
                $doc = new DOMDocument();
                @$doc->loadHTML($body);
-               $xpath = new DomXPath($doc);
+               $xpath = new DOMXPath($doc);
 
                $list = $xpath->query("//meta[@name]");
 
index f83901e98974e527041c7af0b1aa169ddcb5752b..054b87aad4d6dafb66447f8c01053d2b35733156 100644 (file)
@@ -40,6 +40,7 @@ use Friendica\Database\DBM;
 use Friendica\Model\User;
 use dba;
 
+require_once 'include/dba.php';
 require_once 'include/dba.php';
 
 class ExAuth
@@ -313,7 +314,7 @@ class ExAuth
                }
 
                $file = $lockpath . DIRECTORY_SEPARATOR . $host;
-               if (Pidfile::isRunningProcess($file)) {
+               if (PidFile::isRunningProcess($file)) {
                        if (PidFile::killProcess($file)) {
                                $this->writeLog(LOG_INFO, 'Old process was successfully killed');
                        } else {
@@ -323,7 +324,7 @@ class ExAuth
                }
 
                // Now it is safe to create the pid file
-               Pidfile::create($file);
+               PidFile::create($file);
        }
 
        /**
index 9c449844597c56620bb90106ce67bd19fe4772c8..69b906d03c205cfc977344998ac124b1c249ebe0 100644 (file)
@@ -14,6 +14,8 @@ use Friendica\Database\DBM;
 use Memcache;
 use dba;
 
+require_once 'include/dba.php';
+
 /**
  * @brief This class contain Functions for preventing parallel execution of functions
  */
index 9d12b0bd25232e15df2589977b691bca0cce34eb..00a67d872e62b90bf0e6d285517c29436748babc 100644 (file)
@@ -7,7 +7,7 @@ namespace Friendica\Util;
 /**
  * @brief Pidfile class
  */
-class Pidfile
+class PidFile
 {
        /**
         * @brief Read the pid from a given pid file
index a3cf758da5871a5c3b4952156eae9a4ce71af99a..e5e649a07c81b6e75c856f6813e1b390e79bd8bd 100644 (file)
@@ -4,7 +4,7 @@
  */
 namespace Friendica\Util;
 
-use DomXPath;
+use DOMXPath;
 use SimpleXMLElement;
 
 /**
@@ -407,7 +407,7 @@ class XML
         */
        public static function deleteNode(&$doc, $node)
        {
-               $xpath = new DomXPath($doc);
+               $xpath = new DOMXPath($doc);
                $list = $xpath->query("//".$node);
                foreach ($list as $child) {
                        $child->parentNode->removeChild($child);
index db0d518cc3612bd40d71ada7e492a8aab82ed5b6..6afa61601623c81ae07feb43b2dad782e86e532b 100644 (file)
@@ -9,6 +9,8 @@ use Friendica\Core\Worker;
 use Friendica\Database\DBM;
 use dba;
 
+require_once 'include/dba.php';
+
 Class Cron {
        public static function execute($parameter = '', $generation = 0) {
                global $a;
index b59f096d7de3fcf8ea0e8aa9f5d9bb8a8c3d6e91..93f1e3a03a33bbab4d566b72f1b4ec80d3c5211e 100644 (file)
@@ -16,6 +16,10 @@ use Friendica\Network\Probe;
 use Friendica\Protocol\PortableContact;
 use dba;
 
+require_once 'include/dba.php';
+require_once 'include/post_update.php';
+require_once 'mod/nodeinfo.php';
+
 class CronJobs
 {
        public static function execute($command = '')
index 45a080400ed095325d6deec4ee71014933375f22..8d1228f018b2dbcc699260203fa3321c2e0bf4f6 100644 (file)
@@ -10,6 +10,8 @@ use Friendica\Core\Config;
 use Friendica\Core\Worker;
 use dba;
 
+require_once 'include/dba.php';
+
 class DBClean {
        public static function execute($stage = 0) {
 
index 61326fa88e552d66e673022ecb1fca70247b2e00..5a512e9b8e64fded7228c72fa429fc2bddb3952b 100644 (file)
@@ -11,6 +11,8 @@ use Friendica\Core\Worker;
 use Friendica\Database\DBM;
 use dba;
 
+require_once 'include/dba.php';
+
 class Expire {
        public static function execute($param = '', $hook_name = '') {
                global $a;
index 749478044410a337d18455b44e2154cd2f905de5..e3eb6810a3c418915a0d57e5c5ee3ad038cfd80f 100644 (file)
@@ -15,6 +15,7 @@ use Friendica\Protocol\OStatus;
 use Friendica\Protocol\Salmon;
 use dba;
 
+require_once 'include/dba.php';
 require_once 'include/queue_fn.php';
 require_once 'include/html2plain.php';
 require_once 'include/datetime.php';
index 9024d0d4c9008be47ec9eae5071efe9046febe2a..eaf0058f19ffeb7d5ac2d140101905fd140f28af 100644 (file)
@@ -12,6 +12,7 @@ use Friendica\Protocol\Email;
 use Friendica\Protocol\PortableContact;
 use dba;
 
+require_once 'include/dba.php';
 require_once 'include/follow.php';
 
 Class OnePoll
index cb00addc9497d823bbdd0f55094f7a924d6bcea6..8b741b78615ce700463c4235ff9066a853ddcbbf 100644 (file)
@@ -14,6 +14,7 @@ use Friendica\Protocol\PortableContact;
 use Friendica\Protocol\Salmon;
 use dba;
 
+require_once 'include/dba.php';
 require_once 'include/queue_fn.php';
 require_once 'include/datetime.php';
 require_once 'include/items.php';
index 811b0295fb460f3bdea67f60cf4375d7ab3fcccd..4098d66bc59648c227fc170b187356c76209b5d7 100644 (file)
@@ -8,6 +8,8 @@ namespace Friendica\Worker;
 use Friendica\Core\Config;
 use dba;
 
+require_once 'include/dba.php';
+
 class RemoveContact {
        public static function execute($id) {