From ef9f94e0da00d8b1608192f3dc55c5259d733ef8 Mon Sep 17 00:00:00 2001 From: ovclas Date: Mon, 25 Apr 2011 07:22:40 +0000 Subject: [PATCH] #19705602 getDocumentVotedMemberList method add db select column parameter git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8335 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- modules/document/document.model.php | 8 +++++--- modules/document/lang/ko.lang.php | 1 + 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/modules/document/document.model.php b/modules/document/document.model.php index 367abdd32..630ddfbf1 100644 --- a/modules/document/document.model.php +++ b/modules/document/document.model.php @@ -467,12 +467,10 @@ if($oDocument->isExists()) { // Find a post equivalent to ip address $url = getUrl('','module','admin','act','dispDocumentAdminList','search_target','ipaddress','search_keyword',$oDocument->getIpAddress()); - debugPrint($url); $icon_path = './modules/member/tpl/images/icon_management.gif'; $oDocumentController->addDocumentPopupMenu($url,'cmd_search_by_ipaddress',$icon_path,'TraceByIpaddress'); $url = sprintf("var params = new Array(); params['ipaddress']='%s'; exec_xml('spamfilter', 'procSpamfilterAdminInsertDeniedIP', params, completeCallModuleAction)", $oDocument->getIpAddress()); - debugPrint($url); $oDocumentController->addDocumentPopupMenu($url,'cmd_add_ip_to_spamfilter','./modules/document/tpl/icons/declare.gif','javascript'); } } @@ -951,6 +949,9 @@ return $output; } + /** + * @brief vote up, vote down member list in Document View page + **/ function getDocumentVotedMemberList() { $document_srl = Context::get('document_srl'); @@ -960,7 +961,8 @@ if($point != -1) $point = 1; $oDocumentModel = &getModel('document'); - $oDocument = $oDocumentModel->getDocument($document_srl, false, false); + $columnList = array('document_srl', 'module_srl'); + $oDocument = $oDocumentModel->getDocument($document_srl, false, false, $columnList); $module_srl = $oDocument->get('module_srl'); if(!$module_srl) return new Object(-1, 'msg_invalid_request'); diff --git a/modules/document/lang/ko.lang.php b/modules/document/lang/ko.lang.php index 883844a4c..6d0255307 100644 --- a/modules/document/lang/ko.lang.php +++ b/modules/document/lang/ko.lang.php @@ -82,4 +82,5 @@ ); $lang->success_trashed = '휴지통으로 이동되었습니다.'; $lang->msg_not_selected_document = '선택된 문서가 없습니다.'; + $lang->show_voted_member = '사용자 노출'; ?>