From: Hypolite Petovan Date: Tue, 10 Jul 2018 12:38:58 +0000 (-0400) Subject: [pumpio/twitter] Replace global $a with BaseObject::getApp() X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d86bf8eb45539e17736d7e8b9194d4b04303d605;p=friendica-addons.git [pumpio/twitter] Replace global $a with BaseObject::getApp() --- diff --git a/pumpio/pumpio_sync.php b/pumpio/pumpio_sync.php index 834bc1e6..a8fa7b3c 100644 --- a/pumpio/pumpio_sync.php +++ b/pumpio/pumpio_sync.php @@ -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"); diff --git a/twitter/twitter_sync.php b/twitter/twitter_sync.php index 7ff3dbb3..60924acd 100644 --- a/twitter/twitter_sync.php +++ b/twitter/twitter_sync.php @@ -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';