mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 11:44:10 +09:00
#19548552 widget 모듈에서 eval 코드 제거
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@8103 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
d6e6e9ab67
commit
ecb0f65623
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue