mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-23 04:12:18 +09:00
글 수정시 원문의 언어 값만 가져오는 다국어 지원 문제 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5853 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
af03f53741
commit
da182d7b8b
2 changed files with 20 additions and 15 deletions
|
|
@ -12,26 +12,27 @@
|
|||
|
||||
var $allow_trackback_status = null;
|
||||
|
||||
function documentItem($document_srl = 0) {
|
||||
function documentItem($document_srl = 0, $load_extra_vars = true) {
|
||||
$this->document_srl = $document_srl;
|
||||
$this->_loadFromDB();
|
||||
|
||||
$this->_loadFromDB($load_extra_vars);
|
||||
}
|
||||
|
||||
function setDocument($document_srl) {
|
||||
function setDocument($document_srl, $load_extra_vars = true) {
|
||||
$this->document_srl = $document_srl;
|
||||
$this->_loadFromDB();
|
||||
$this->_loadFromDB($load_extra_vars);
|
||||
}
|
||||
|
||||
function _loadFromDB() {
|
||||
function _loadFromDB($load_extra_vars=true) {
|
||||
if(!$this->document_srl) return;
|
||||
|
||||
$args->document_srl = $this->document_srl;
|
||||
$output = executeQuery('document.getDocument', $args);
|
||||
|
||||
$this->setAttribute($output->data);
|
||||
$this->setAttribute($output->data,$load_extra_vars);
|
||||
}
|
||||
|
||||
function setAttribute($attribute) {
|
||||
function setAttribute($attribute,$load_extra_vars=true) {
|
||||
if(!$attribute->document_srl) {
|
||||
$this->document_srl = null;
|
||||
return;
|
||||
|
|
@ -47,6 +48,10 @@
|
|||
for($i=0;$i<$tag_count;$i++) if(trim($tags[$i])) $tag_list[] = trim($tags[$i]);
|
||||
$this->add('tag_list', $tag_list);
|
||||
}
|
||||
|
||||
$oDocumentModel = &getModel('document');
|
||||
$GLOBALS['XE_DOCUMENT_LIST'][$this->document_srl] = $this;
|
||||
if($load_extra_vars) $oDocumentModel->setToAllDocumentExtraVars();
|
||||
}
|
||||
|
||||
function isExists() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue