Add DI:: call
authornupplaPhil <admin@philipp.info>
Tue, 21 Jan 2020 23:13:33 +0000 (00:13 +0100)
committernupplaPhil <admin@philipp.info>
Tue, 21 Jan 2020 23:14:14 +0000 (00:14 +0100)
mod/notifications.php

index 33ff910..deee5f1 100644 (file)
@@ -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',