Add DI:: call

This commit is contained in:
Philipp Holzer 2020-01-22 00:13:33 +01:00
parent b46b72ad3b
commit 7984965183
No known key found for this signature in database
GPG key ID: D8365C3D36B77D90

View file

@ -89,7 +89,7 @@ function notifications_content(App $a)
$o = ''; $o = '';
// Get the nav tabs for the notification pages // Get the nav tabs for the notification pages
$tabs = getTabs($this->args->get(1, '')); $tabs = getTabs(DI::args()->get(1, ''));
$notif_content = []; $notif_content = [];
$notif_nocontent = ''; $notif_nocontent = '';
@ -363,7 +363,7 @@ function getTabs(string $selected = '')
foreach (URL_TYPES as $type => $url) { foreach (URL_TYPES as $type => $url) {
$tabs[] = [ $tabs[] = [
'label' => $this->l10n->t(PRINT_TYPES[$type]), 'label' => DI::l10n()->t(PRINT_TYPES[$type]),
'url' => 'notifications/' . $url, 'url' => 'notifications/' . $url,
'sel' => (($selected == $url) ? 'active' : ''), 'sel' => (($selected == $url) ? 'active' : ''),
'id' => $type . '-tab', 'id' => $type . '-tab',