mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 11:11:39 +09:00
issue 1516, clone a ExtraItem in DocumentModel::setToAllDocumentExtraVars().
Because, PHP5 allocate Object reference to variable when assign a Object. There are a problem that change ExtraItem in $GLOBALS['XE_EXTRA_KEYS'][$module_srl] after call DocumentModel::setToAllDocumentExtraVars(). git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10188 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
dcf5b5a8eb
commit
90b399ef72
1 changed files with 1 additions and 0 deletions
|
|
@ -60,6 +60,7 @@
|
|||
// Expand the variable processing
|
||||
if(count($extra_keys)) {
|
||||
foreach($extra_keys as $idx => $key) {
|
||||
$extra_keys[$idx] = clone($key);
|
||||
$val = $vars[$idx];
|
||||
if(isset($val[$user_lang_code])) $v = $val[$user_lang_code];
|
||||
else if(isset($val[$document_lang_code])) $v = $val[$document_lang_code];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue