]> git.mxchange.org Git - friendica.git/commitdiff
Fix missing App object in Worker\OnePoll
authorHypolite Petovan <hypolite@mrpetovan.com>
Sun, 30 Jun 2019 16:16:18 +0000 (12:16 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sun, 30 Jun 2019 16:16:18 +0000 (12:16 -0400)
src/Worker/OnePoll.php

index 3c14100ab25706ff17e1f395ac89c833a8c20bea..33a9a51a1896013ca88a5f8c5d3b9c4aadd0562c 100644 (file)
@@ -26,8 +26,6 @@ class OnePoll
 {
        public static function execute($contact_id = 0, $command = '')
        {
-               $a = BaseObject::getApp();
-
                Logger::log('Start for contact ' . $contact_id);
 
                $force = false;
@@ -612,7 +610,7 @@ class OnePoll
                                                }
                                        }
 
-                                       $fromarr = imap_rfc822_parse_adrlist($fromdecoded, $a->getHostName());
+                                       $fromarr = imap_rfc822_parse_adrlist($fromdecoded, BaseObject::getApp()->getHostName());
 
                                        $frommail = $fromarr[0]->mailbox."@".$fromarr[0]->host;