mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-22 03:42:18 +09:00
Add configuration for thumbnail target
- 썸네일 생성 대상 설정과 썸네일 생성 방식 설정을 분리하여 외부이미지 썸네일 생성을 방지할 수 있는 옵션 추가 - 문서 모듈과 관리 모듈에 흩어져 있는 썸네일 관련 언어파일을 관리 모듈로 합침
This commit is contained in:
parent
28d5f12cf1
commit
1a6e84d9cc
22 changed files with 60 additions and 36 deletions
|
|
@ -543,7 +543,13 @@ class adminAdminView extends admin
|
|||
// Thumbnail settings
|
||||
$oDocumentModel = getModel('document');
|
||||
$config = $oDocumentModel->getDocumentConfig();
|
||||
Context::set('thumbnail_target', $config->thumbnail_target ?: 'all');
|
||||
Context::set('thumbnail_type', $config->thumbnail_type ?: 'crop');
|
||||
if ($config->thumbnail_type === 'none')
|
||||
{
|
||||
Context::set('thumbnail_target', 'none');
|
||||
Context::set('thumbnail_type', 'crop');
|
||||
}
|
||||
|
||||
// Default and enabled languages
|
||||
Context::set('supported_lang', Rhymix\Framework\Lang::getSupportedList());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue