mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Allow SVG and WebP image uploads in layout configuration
This commit is contained in:
parent
cac0ea171c
commit
bbcbe04838
3 changed files with 3 additions and 3 deletions
|
|
@ -87,7 +87,7 @@ $lang->layout_editing_deprecated_p4 = 'The original source code is stored in the
|
|||
$lang->layout_editing_deprecated_p5 = 'Caution: Clicking Reset will roll back the layout source code to the original. You cannot return to this screen afterward.<br />Please back up the edited source code below before clicking Reset.';
|
||||
$lang->layout_image_repository = 'Layout Repository';
|
||||
$lang->about_layout_image_repository = 'You can upload image/flash files for the selected layout. They will be included in exports.';
|
||||
$lang->msg_layout_image_target = 'Only gif, png, jpg, swf, flv files are allowed';
|
||||
$lang->msg_layout_image_target = 'Only gif, jpg, png, svg, webp files are allowed.';
|
||||
$lang->layout_migration = 'Layout Migration';
|
||||
$lang->about_layout_migration = 'You can export or import the editted layout as a tar file. (So far only FaceOff supports exports/imports)';
|
||||
$lang->about_faceoff['title'] = 'Rhymix FaceOff Layout Manager';
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@ $lang->layout_editing_deprecated_p4 = '원본 소스 코드는 아래의 경로
|
|||
$lang->layout_editing_deprecated_p5 = '주의: 초기화를 클릭하면 편집된 소스 코드가 원본으로 대체되며, 이 화면으로 다시 돌아올 수 없습니다.<br />초기화하기 전에 편집된 소스 코드를 백업해 두시기 바랍니다.';
|
||||
$lang->layout_image_repository = '레이아웃 파일 저장소';
|
||||
$lang->about_layout_image_repository = '선택한 레이아웃에 사용될 이미지/플래시파일 등을 올릴 수 있습니다. 내보내기에 같이 포함 됩니다.';
|
||||
$lang->msg_layout_image_target = 'gif, png, jpg, swf, flv파일만 가능합니다.';
|
||||
$lang->msg_layout_image_target = 'gif, jpg, png, svg, webp 파일만 가능합니다.';
|
||||
$lang->layout_migration = '레이아웃 내보내기/들이기';
|
||||
$lang->about_layout_migration = '수정된 레이아웃을 tar 파일로 내보내거나 tar 파일로 저장된 것을 불러올 수 있습니다. (아직은 faceOff레이아웃만 내보내기/들이기가 됩니다.)';
|
||||
$lang->about_faceoff['title'] = 'Rhymix FaceOff Layout 관리자';
|
||||
|
|
|
|||
|
|
@ -897,7 +897,7 @@ class LayoutAdminController extends Layout
|
|||
return;
|
||||
}
|
||||
|
||||
if(!preg_match('/\.(jpg|jpeg|gif|png)$/i', $img['name']))
|
||||
if(!preg_match('/\.(gif|jpe?g|png|svg|webp)$/i', $img['name']))
|
||||
{
|
||||
Context::set('msg', lang('msg_layout_image_target'));
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue