mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Display more helpful message after image conversion
This commit is contained in:
parent
84acc21817
commit
a806c0f0f7
3 changed files with 7 additions and 3 deletions
|
|
@ -394,7 +394,7 @@ class FileAdminController extends File
|
|||
$moved = Rhymix\Framework\Storage::move($temp_filename, $uploaded_filename);
|
||||
if (!$moved)
|
||||
{
|
||||
throw new Rhymix\Framework\Exception;
|
||||
throw new Rhymix\Framework\Exception(lang('file.msg_image_conversion_failed'));
|
||||
}
|
||||
if ($del_filename)
|
||||
{
|
||||
|
|
@ -426,10 +426,10 @@ class FileAdminController extends File
|
|||
}
|
||||
else
|
||||
{
|
||||
throw new Rhymix\Framework\Exception;
|
||||
throw new Rhymix\Framework\Exception(lang('file.msg_image_conversion_failed'));
|
||||
}
|
||||
|
||||
$this->setMessage('success_updated');
|
||||
$this->setMessage(sprintf(lang('file.msg_image_converted'), FileHandler::filesize($file->file_size), FileHandler::filesize($filesize)));
|
||||
$this->setRedirectUrl(Context::get('success_return_url') ?: getNotEncodedUrl(['module' => 'admin', 'act' => 'dispFileAdminEdit', 'file_srl' => $file_srl]));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -135,3 +135,5 @@ $lang->msg_need_magick = 'In order to handle AVIF and HEIC formats, PHP must be
|
|||
$lang->image_conversion = 'Image conversion';
|
||||
$lang->image_size = 'Image size';
|
||||
$lang->image_format = 'Image format';
|
||||
$lang->msg_image_converted = 'The image has been converted. (%s → %s)';
|
||||
$lang->msg_image_conversion_failed = 'The image conversion has failed.';
|
||||
|
|
|
|||
|
|
@ -138,3 +138,5 @@ $lang->msg_need_magick = 'AVIF, HEIC 변환을 위해서는 PHP에서 ImageMagic
|
|||
$lang->image_conversion = '이미지 변환';
|
||||
$lang->image_size = '이미지 크기';
|
||||
$lang->image_format = '이미지 포맷';
|
||||
$lang->msg_image_converted = '이미지가 변환되었습니다. (%s → %s)';
|
||||
$lang->msg_image_conversion_failed = '이미지 변환에 실패했습니다.';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue