[pumpio/twitter] Replace global $a with BaseObject::getApp()
This commit is contained in:
parent
9e1e088c09
commit
d86bf8eb45
|
@ -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");
|
||||||
|
|
||||||
|
|
|
@ -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';
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user