]> git.mxchange.org Git - friendica-addons.git/commitdiff
[pumpio/twitter] Replace global $a with BaseObject::getApp()
authorHypolite Petovan <mrpetovan@gmail.com>
Tue, 10 Jul 2018 12:38:58 +0000 (08:38 -0400)
committerHypolite Petovan <mrpetovan@gmail.com>
Tue, 10 Jul 2018 12:41:32 +0000 (08:41 -0400)
pumpio/pumpio_sync.php
twitter/twitter_sync.php

index 834bc1e6db05d661cf7d01891697aba0d28d0813..a8fa7b3cdfc10b8e21a8e72804570821247301e9 100644 (file)
@@ -2,7 +2,7 @@
 use Friendica\Core\Config;
 
 function pumpio_sync_run(&$argv, &$argc) {
-       global $a;
+       $a = Friendica\BaseObject::getApp();
 
        require_once("addon/pumpio/pumpio.php");
 
index 7ff3dbb3781d7042af99fc5714690bf71b244e43..60924acde650a21d1d0c988a0b07399d8ccfe1c7 100644 (file)
@@ -4,7 +4,7 @@ use Friendica\Core\Config;
 
 function twitter_sync_run($argv, $argc)
 {
-       global $a;
+       $a = Friendica\BaseObject::getApp();
 
        require_once 'addon/twitter/twitter.php';