mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-01-26 07:19:47 +00:00
Replace call for Logger with DI::logger() in planets addon
This commit is contained in:
parent
757d72c360
commit
469d3e6d61
1 changed files with 2 additions and 3 deletions
|
@ -8,7 +8,6 @@
|
|||
*/
|
||||
|
||||
use Friendica\Core\Hook;
|
||||
use Friendica\Core\Logger;
|
||||
use Friendica\Core\Renderer;
|
||||
use Friendica\DI;
|
||||
|
||||
|
@ -28,7 +27,7 @@ function planets_install()
|
|||
Hook::register('addon_settings', 'addon/planets/planets.php', 'planets_settings');
|
||||
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)
|
||||
{
|
||||
Logger::notice('planets invoked');
|
||||
DI::logger()->notice('planets invoked');
|
||||
|
||||
if (!DI::userSession()->getLocalUserId()) {
|
||||
/* non-zero if this is a logged in user of this system */
|
||||
|
|
Loading…
Add table
Reference in a new issue