[pumpio/twitter] Replace global $a with BaseObject::getApp()

This commit is contained in:
Hypolite Petovan 2018-07-10 08:38:58 -04:00
parent 9e1e088c09
commit d86bf8eb45
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
use Friendica\Core\Config; use Friendica\Core\Config;
function pumpio_sync_run(&$argv, &$argc) { function pumpio_sync_run(&$argv, &$argc) {
global $a; $a = Friendica\BaseObject::getApp();
require_once("addon/pumpio/pumpio.php"); require_once("addon/pumpio/pumpio.php");

View File

@ -4,7 +4,7 @@ use Friendica\Core\Config;
function twitter_sync_run($argv, $argc) function twitter_sync_run($argv, $argc)
{ {
global $a; $a = Friendica\BaseObject::getApp();
require_once 'addon/twitter/twitter.php'; require_once 'addon/twitter/twitter.php';