tweak UI text

This commit is contained in:
Pig Fang 2020-08-19 17:58:31 +08:00
parent bf860d6a68
commit 0f791f42cc
No known key found for this signature in database
GPG Key ID: A8198F548DADA9E2
3 changed files with 2 additions and 3 deletions

View File

@ -93,7 +93,7 @@ class SkinlibController extends Controller
abort(404, trans('skinlib.show.deleted'));
}
abort(404, trans('skinlib.show.deleted').trans('skinlib.show.contact-admin'));
abort(404, trans('skinlib.show.deleted'));
}
if (!$texture->public) {

View File

@ -4,7 +4,6 @@ general:
show:
title: Texture Details
deleted: The requested texture was already deleted.
contact-admin: Please contact the admins to remove this entry.
private: The requested texture is private and only visible to the uploader and admins.
upload:

View File

@ -144,7 +144,7 @@ class SkinlibControllerTest extends TestCase
option(['auto_del_invalid_texture' => false]);
$texture = factory(Texture::class)->create();
$this->get('/skinlib/show/'.$texture->tid)
->assertSee(trans('skinlib.show.deleted').trans('skinlib.show.contact-admin'));
->assertSee(trans('skinlib.show.deleted'));
$this->assertNotNull(Texture::find($texture->tid));
option(['auto_del_invalid_texture' => true]);