mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-19 10:23:16 +09:00
썸네일 생성시 매번 document.config를 가져오지 않도록 전역 변수화 시킴
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3420 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
f39817c4cd
commit
8b3ec4c20d
1 changed files with 7 additions and 2 deletions
|
|
@ -353,11 +353,16 @@
|
|||
|
||||
function getThumbnail($width = 80, $height = 0, $thumbnail_type = '') {
|
||||
if(!$height) $height = $width;
|
||||
$thumbnail_type = '';
|
||||
|
||||
// 문서 모듈의 기본 설정에서 Thumbnail의 생성 방법을 구함
|
||||
if(!in_array($thumbnail_type, array('crop','ratio'))) {
|
||||
$oDocumentModel = &getModel('document');
|
||||
$config = $oDocumentModel->getDocumentConfig();
|
||||
$config = $GLOBALS['__document_config__'];
|
||||
if(!$config) {
|
||||
$oDocumentModel = &getModel('document');
|
||||
$config = $oDocumentModel->getDocumentConfig();
|
||||
$GLOBALS['__document_config__'] = $config;
|
||||
}
|
||||
$thumbnail_type = $config->thumbnail_type;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue