Browse Source

get mailinglists

andre 2 years ago
parent
commit
e51a77f5a7
1 changed files with 6 additions and 6 deletions
  1. 6 6
      app/UI/Client/DistributionList/Providers/AddListDataProvider.php

+ 6 - 6
app/UI/Client/DistributionList/Providers/AddListDataProvider.php

@@ -67,6 +67,12 @@ class AddListDataProvider extends BaseDataProvider
         }
         $api->logout();
 
+        /**
+         *
+         * load lang
+         */
+        $lang = di('lang');
+
         $this->availableValues['moderator']['none'] = $lang->absoluteT('none');
         foreach($accounts as $account)
         {
@@ -74,12 +80,6 @@ class AddListDataProvider extends BaseDataProvider
             $this->availableValues['moderator'][$account['loginName']] = $account['loginName'] . '@' . $this->maildomain;
         }
 
-        /**
-         *
-         * load lang
-         */
-        $lang = di('lang');
-
         /**
          * subscription requests
          */