#19548552 widget 모듈에서 eval 코드 제거

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@8103 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
taggon 2011-02-17 06:13:11 +00:00
parent d6e6e9ab67
commit ecb0f65623

View file

@ -607,8 +607,8 @@
require_once($class_file);
// 객체 생성
$eval_str = sprintf('$oWidget = new %s();', $widget);
@eval($eval_str);
$tmp_fn = create_function('', "return new {$widget}()");
$oWidget = $tmp_fn();
if(!is_object($oWidget)) return sprintf(Context::getLang('msg_widget_object_is_null'), $widget);
if(!method_exists($oWidget, 'proc')) return sprintf(Context::getLang('msg_widget_proc_is_null'), $widget);