mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-22 20:59:55 +09:00
#17763740 : added the list of contributors
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5987 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
86ada3ed8f
commit
820775863a
10 changed files with 63 additions and 5 deletions
|
|
@ -27,6 +27,7 @@
|
|||
|
||||
$document_config = $oModuleModel->getModulePartConfig('document', $this->module_info->module_srl);
|
||||
if(!isset($document_config->use_history)) $document_config->use_history = 'N';
|
||||
$this->use_history = $document_config->use_history;
|
||||
Context::set('use_history', $document_config->use_history);
|
||||
|
||||
Context::addJsFile($this->module_path.'tpl/js/wiki.js');
|
||||
|
|
@ -156,12 +157,21 @@
|
|||
// 비밀글일때 컨텐츠를 보여주지 말자.
|
||||
if($oDocument->isSecret() && !$oDocument->isGranted()) $oDocument->add('content',Context::getLang('thisissecret'));
|
||||
$this->setTemplateFile('view_document');
|
||||
|
||||
// set contributors
|
||||
if($this->use_history)
|
||||
{
|
||||
$oModel = &getModel('wiki');
|
||||
$contributors = $oModel->getContributors($oDocument->document_srl);
|
||||
Context::set('contributors', $contributors);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->setTemplateFile('create_document');
|
||||
}
|
||||
|
||||
|
||||
// 스킨에서 사용할 oDocument 변수 세팅
|
||||
Context::set('oDocument', $oDocument);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue