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'));
} }
abort(404, trans('skinlib.show.deleted').trans('skinlib.show.contact-admin')); abort(404, trans('skinlib.show.deleted'));
} }
if (!$texture->public) { if (!$texture->public) {

View File

@ -4,7 +4,6 @@ general:
show: show:
title: Texture Details title: Texture Details
deleted: The requested texture was already deleted. 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. private: The requested texture is private and only visible to the uploader and admins.
upload: upload:

View File

@ -144,7 +144,7 @@ class SkinlibControllerTest extends TestCase
option(['auto_del_invalid_texture' => false]); option(['auto_del_invalid_texture' => false]);
$texture = factory(Texture::class)->create(); $texture = factory(Texture::class)->create();
$this->get('/skinlib/show/'.$texture->tid) $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)); $this->assertNotNull(Texture::find($texture->tid));
option(['auto_del_invalid_texture' => true]); option(['auto_del_invalid_texture' => true]);