From d86bf8eb45539e17736d7e8b9194d4b04303d605 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Tue, 10 Jul 2018 08:38:58 -0400 Subject: [PATCH] [pumpio/twitter] Replace global $a with BaseObject::getApp() --- pumpio/pumpio_sync.php | 2 +- twitter/twitter_sync.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pumpio/pumpio_sync.php b/pumpio/pumpio_sync.php index 834bc1e6d..a8fa7b3cd 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 7ff3dbb37..60924acde 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';