mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 19:21:40 +09:00
#18979684 : handle renamed parameter having null value
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7565 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
4ea66de09d
commit
86e01f9f8c
1 changed files with 3 additions and 2 deletions
|
|
@ -43,7 +43,7 @@
|
|||
**/
|
||||
|
||||
class XmlJsFilter extends XmlParser {
|
||||
var $version = '0.2.3';
|
||||
var $version = '0.2.4';
|
||||
var $compiled_path = './files/cache/js_filter_compiled/'; ///< 컴파일된 캐시 파일이 놓일 위치
|
||||
var $xml_file = NULL; ///< 대상 xml 파일
|
||||
var $js_file = NULL; ///< 컴파일된 js 파일
|
||||
|
|
@ -220,7 +220,8 @@
|
|||
$name = trim($attrs->name);
|
||||
$target = trim($attrs->target);
|
||||
|
||||
if($name && $target && ($name != $target)) $js_doc[] = "\t\tparams['{$name}'] = params['{$target}']; delete params['{$target}'];";
|
||||
//if($name && $target && ($name != $target)) $js_doc[] = "\t\tparams['{$name}'] = params['{$target}']; delete params['{$target}'];";
|
||||
if($name && $target && ($name != $target)) $js_doc[] = "\t\tif(params['{$target}']) { params['{$name}'] = params['{$target}']; delete params['{$target}']; }";
|
||||
if($name && !in_array($name, $target_list)) $target_list[] = $name;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue