Replace call for Logger with DI::logger() in public_server addon
parent
119ba0a78e
commit
e32ba1ce7b
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue