Network was moved to src

update all function calls to use class, insert use statements and remove require_once statements
This commit is contained in:
Adam Magness 2018-01-27 08:52:02 -05:00
parent e09e16fd56
commit ca3c45101e
19 changed files with 76 additions and 71 deletions

View file

@ -8,6 +8,7 @@
use Friendica\Core\Addon;
use Friendica\Core\L10n;
use Friendica\Core\PConfig;
use Friendica\Util\Network;
function libertree_install() {
Addon::registerHook('post_local', 'addon/libertree/libertree.php', 'libertree_post_local');
@ -229,9 +230,7 @@ function libertree_send(&$a,&$b) {
// 'token' => $ltree_api_token
];
$result = post_url($ltree_blog,$params);
$result = Network::postURL($ltree_blog, $params);
logger('libertree: ' . $result);
}
}