php4, php5 에서 참조 호출 및 자기 자신의 객체 교체등에 대한 버전별 오류를 수정

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6342 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2009-05-20 02:00:18 +00:00
parent c52ed374b0
commit 01a374c403
2 changed files with 9 additions and 6 deletions

View file

@ -51,8 +51,11 @@
$oDocumentModel = &getModel('document');
$GLOBALS['XE_DOCUMENT_LIST'][$this->document_srl] = $this;
if($load_extra_vars) $oDocumentModel->setToAllDocumentExtraVars();
$this = $GLOBALS['XE_DOCUMENT_LIST'][$this->document_srl];
if($load_extra_vars) {
$oDocumentModel->setToAllDocumentExtraVars();
$this->add('title', $GLOBALS['XE_DOCUMENT_LIST'][$this->document_srl]->get('title'));
$this->add('content', $GLOBALS['XE_DOCUMENT_LIST'][$this->document_srl]->get('content'));
}
}
function isExists() {