mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-02-04 02:38:51 +00:00
Replace call for Logger with DI::logger() in wppost addon
This commit is contained in:
parent
e4d14cab62
commit
dd775645d4
1 changed files with 2 additions and 3 deletions
|
@ -9,7 +9,6 @@
|
|||
use Friendica\Content\Text\BBCode;
|
||||
use Friendica\Content\Text\HTML;
|
||||
use Friendica\Core\Hook;
|
||||
use Friendica\Core\Logger;
|
||||
use Friendica\Core\Renderer;
|
||||
use Friendica\Database\DBA;
|
||||
use Friendica\DI;
|
||||
|
@ -257,13 +256,13 @@ function wppost_send(array &$b)
|
|||
|
||||
EOT;
|
||||
|
||||
Logger::debug('wppost: data: ' . $xml);
|
||||
DI::logger()->debug('wppost: data: ' . $xml);
|
||||
|
||||
$x = '';
|
||||
|
||||
if ($wp_blog !== 'test') {
|
||||
$x = DI::httpClient()->post($wp_blog, $xml)->getBodyString();
|
||||
}
|
||||
Logger::info('posted to wordpress: ' . $x);
|
||||
DI::logger()->info('posted to wordpress: ' . $x);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue