mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 19:21:40 +09:00
#390 서명 높이가 강제적으로 지정되도록 문서와 댓글의 getSignature() 함수를 변경
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3688 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
8a68fcccf4
commit
868d5ca0da
4 changed files with 26 additions and 2 deletions
|
|
@ -612,9 +612,22 @@
|
|||
* @brief 작성자의 서명을 return
|
||||
**/
|
||||
function getSignature() {
|
||||
// 존재하지 않는 글이면 패스~
|
||||
if(!$this->isExists() || !$this->get('member_srl')) return;
|
||||
|
||||
// 서명정보를 구함
|
||||
$oMemberModel = &getModel('member');
|
||||
$signature = $oMemberModel->getSignature($this->get('member_srl'));
|
||||
|
||||
// 회원모듈에서 서명 최고 높이 지정되었는지 검사
|
||||
if(!isset($GLOBALS['__member_signature_max_height'])) {
|
||||
$oModuleModel = &getModel('module');
|
||||
$member_config = $oModuleModel->getModuleConfig('member');
|
||||
$GLOBALS['__member_signature_max_height'] = $member_config->signature_max_height;
|
||||
}
|
||||
$max_signature_height = $GLOBALS['__member_signature_max_height'];
|
||||
if($max_signature_height) $signature = sprintf('<div style="height:%dpx;overflow-y:auto;overflow-x:hidden;">%s</div>',$max_signature_height, $signature);
|
||||
|
||||
return $signature;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue