andre 2 лет назад
Родитель
Сommit
4b9b04be7d
1 измененных файлов с 2 добавлено и 6 удалено
  1. 2 6
      app/UI/Client/DistributionList/Providers/EditListDataProvider.php

+ 2 - 6
app/UI/Client/DistributionList/Providers/EditListDataProvider.php

@@ -99,8 +99,9 @@ class EditListDataProvider extends AddListDataProvider
         $hosting = Hosting::where('id', $this->getRequestValue('id'))->first();
 
         /**
-         * load api
+         * load lang
          */
+        $lang = di('lang');
 
         $this->data['id'] = $list[0]['id'];
 
@@ -145,11 +146,6 @@ class EditListDataProvider extends AddListDataProvider
          */
 //        $accounts = $repository->accounts->getByDomainName($hosting->domain);
 
-        /**
-         * load lang
-         */
-        $lang = di('lang');
-
         /**
          * subscription requests
          */