mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-07 00:48:55 +00:00
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:
parent
e09e16fd56
commit
ca3c45101e
19 changed files with 76 additions and 71 deletions
|
@ -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);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue