diff --git a/app/Http/Controllers/HomeController.php b/app/Http/Controllers/HomeController.php index 66a8601..1a29542 100644 --- a/app/Http/Controllers/HomeController.php +++ b/app/Http/Controllers/HomeController.php @@ -10,7 +10,7 @@ use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Gate; use App\Classes\File; -use App\Classes\FTN\Packet; +use App\Classes\FTN\{Message,Packet}; use App\Http\Requests\SetupRequest; use App\Models\File as FileModel; use App\Models\{Address,Echomail,Netmail,Setup,System}; @@ -169,7 +169,7 @@ class HomeController extends Controller ->orWhere('replyid','like','%'.$request->query('term').'%') ->get() as $o) { - $result->push(['id'=>$o->id,'name'=>sprintf('%s (%s)',$o->from,$o->fftn->ftn3d),'value'=>url('echomail/view',[$o->id]),'category'=>'Echomail']); + $result->push(['id'=>$o->id,'name'=>sprintf('%s (%s)',Message::tr($o->from),$o->fftn->ftn3d),'value'=>url('echomail/view',[$o->id]),'category'=>'Echomail']); } // Look for Netmail diff --git a/resources/views/filearea/addedit.blade.php b/resources/views/filearea/addedit.blade.php index 301ed47..31050a3 100644 --- a/resources/views/filearea/addedit.blade.php +++ b/resources/views/filearea/addedit.blade.php @@ -1,5 +1,6 @@ @use(App\Models\Domain) +@use(App\Classes\FTN\Message) @extends('layouts.app') @section('htmlheader_title') @@ -177,7 +178,7 @@