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

pull/1594/head
Art4 2025-01-24 11:54:34 +00:00
parent 119ba0a78e
commit e32ba1ce7b
1 changed files with 2 additions and 3 deletions

View File

@ -8,7 +8,6 @@
use Friendica\BaseModule;
use Friendica\Core\Hook;
use Friendica\Core\Logger;
use Friendica\Core\Renderer;
use Friendica\Database\DBA;
use Friendica\DI;
@ -47,7 +46,7 @@ function public_server_register_account($b)
function public_server_cron($b)
{
Logger::notice("public_server: cron start");
DI::logger()->notice("public_server: cron start");
$users = DBA::selectToArray('user', [], ["`account_expires_on` > ? AND `account_expires_on` < ?
AND `expire_notification_sent` <= ?", DBA::NULL_DATETIME, DateTimeFormat::utc('now + 5 days'), DBA::NULL_DATETIME]);
@ -96,7 +95,7 @@ function public_server_cron($b)
}
}
Logger::notice("public_server: cron end");
DI::logger()->notice("public_server: cron end");
}
function public_server_enotify(array &$b)