mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-13 11:58:48 +00:00
Replace call for Logger with DI::logger() in ratioed addon
This commit is contained in:
parent
d78ea50516
commit
77ebaca281
2 changed files with 5 additions and 7 deletions
|
@ -8,7 +8,6 @@
|
|||
|
||||
use Friendica\Addon\ratioed\RatioedPanel;
|
||||
use Friendica\Core\Hook;
|
||||
use Friendica\Core\Logger;
|
||||
use Friendica\DI;
|
||||
|
||||
/**
|
||||
|
@ -18,7 +17,7 @@ function ratioed_install()
|
|||
{
|
||||
Hook::register('moderation_users_tabs', 'addon/ratioed/ratioed.php', 'ratioed_users_tabs');
|
||||
|
||||
Logger::info("ratioed: installed");
|
||||
DI::logger()->info("ratioed: installed");
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -34,7 +33,7 @@ function ratioed_module() {}
|
|||
* @param array $arr Parameters, including "tabs" which is the list to modify, and "selectedTab", which is the currently selected tab ID
|
||||
*/
|
||||
function ratioed_users_tabs(array &$arr) {
|
||||
Logger::debug("ratioed: users tabs");
|
||||
DI::logger()->debug("ratioed: users tabs");
|
||||
|
||||
array_push($arr['tabs'], [
|
||||
'label' => DI::l10n()->t('Behaviour'),
|
||||
|
@ -50,7 +49,7 @@ function ratioed_users_tabs(array &$arr) {
|
|||
* @brief Displays the ratioed tab in the moderation panel
|
||||
*/
|
||||
function ratioed_content() {
|
||||
Logger::debug("ratioed: content");
|
||||
DI::logger()->debug("ratioed: content");
|
||||
|
||||
$ratioed = DI::getDice()->create(RatioedPanel::class, [$_SERVER]);
|
||||
$httpException = DI::getDice()->create(Friendica\Module\Special\HTTPException::class);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue