From 7984965183c4dd6879d59fe848ff5687851bbb65 Mon Sep 17 00:00:00 2001 From: nupplaPhil Date: Wed, 22 Jan 2020 00:13:33 +0100 Subject: [PATCH] Add DI:: call --- mod/notifications.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod/notifications.php b/mod/notifications.php index 33ff91023..deee5f1b7 100644 --- a/mod/notifications.php +++ b/mod/notifications.php @@ -89,7 +89,7 @@ function notifications_content(App $a) $o = ''; // Get the nav tabs for the notification pages - $tabs = getTabs($this->args->get(1, '')); + $tabs = getTabs(DI::args()->get(1, '')); $notif_content = []; $notif_nocontent = ''; @@ -363,7 +363,7 @@ function getTabs(string $selected = '') foreach (URL_TYPES as $type => $url) { $tabs[] = [ - 'label' => $this->l10n->t(PRINT_TYPES[$type]), + 'label' => DI::l10n()->t(PRINT_TYPES[$type]), 'url' => 'notifications/' . $url, 'sel' => (($selected == $url) ? 'active' : ''), 'id' => $type . '-tab',