Replace call for Logger with DI::logger() in planets addon

This commit is contained in:
Art4 2025-01-24 11:47:40 +00:00
parent 757d72c360
commit 469d3e6d61

View file

@ -8,7 +8,6 @@
*/ */
use Friendica\Core\Hook; use Friendica\Core\Hook;
use Friendica\Core\Logger;
use Friendica\Core\Renderer; use Friendica\Core\Renderer;
use Friendica\DI; use Friendica\DI;
@ -28,7 +27,7 @@ function planets_install()
Hook::register('addon_settings', 'addon/planets/planets.php', 'planets_settings'); Hook::register('addon_settings', 'addon/planets/planets.php', 'planets_settings');
Hook::register('addon_settings_post', 'addon/planets/planets.php', 'planets_settings_post'); Hook::register('addon_settings_post', 'addon/planets/planets.php', 'planets_settings_post');
Logger::notice("installed planets"); DI::logger()->notice("installed planets");
} }
/** /**
@ -39,7 +38,7 @@ function planets_install()
*/ */
function planets_post_hook(&$item) function planets_post_hook(&$item)
{ {
Logger::notice('planets invoked'); DI::logger()->notice('planets invoked');
if (!DI::userSession()->getLocalUserId()) { if (!DI::userSession()->getLocalUserId()) {
/* non-zero if this is a logged in user of this system */ /* non-zero if this is a logged in user of this system */