mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-07 08:58:49 +00:00
Move post/curl/fetchUrl/fetchUrlFull to own class "Network\HTTPRequest"
This commit is contained in:
parent
31bd1a1ba0
commit
9640142a72
18 changed files with 50 additions and 45 deletions
|
@ -11,7 +11,7 @@ use Friendica\Content\Text\BBCode;
|
|||
use Friendica\Core\Hook;
|
||||
use Friendica\Core\Logger;
|
||||
use Friendica\DI;
|
||||
use Friendica\Util\Network;
|
||||
use Friendica\Network\HTTPRequest;
|
||||
use Friendica\Util\XML;
|
||||
|
||||
function blogger_install()
|
||||
|
@ -225,7 +225,7 @@ EOT;
|
|||
Logger::log('blogger: data: ' . $xml, Logger::DATA);
|
||||
|
||||
if ($bl_blog !== 'test') {
|
||||
$x = Network::post($bl_blog, $xml)->getBody();
|
||||
$x = HTTPRequest::post($bl_blog, $xml)->getBody();
|
||||
}
|
||||
|
||||
Logger::log('posted to blogger: ' . (($x) ? $x : ''), Logger::DEBUG);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue