mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 03:01:43 +09:00
에디터 컨트롤로의 method 실행 부분 수정. 트루먼님의 코드에서 에러 부분 파악.
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3041 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
a7f7a11d46
commit
559e987765
1 changed files with 4 additions and 1 deletions
|
|
@ -59,7 +59,10 @@
|
||||||
if(!method_exists($oComponent, $method)) return new Object(-1, sprintf(Context::getLang('msg_component_is_not_founded'), $component));
|
if(!method_exists($oComponent, $method)) return new Object(-1, sprintf(Context::getLang('msg_component_is_not_founded'), $component));
|
||||||
|
|
||||||
//$output = call_user_method($method, $oComponent);
|
//$output = call_user_method($method, $oComponent);
|
||||||
$output = call_user_func(array($oComponent, $method));
|
//$output = call_user_func(array($oComponent, $method));
|
||||||
|
if(method_exists($oComponent, $method)) $output = $oComponent->{$method}();
|
||||||
|
else return new Object(-1,sprintf('%s method is not exists', $method));
|
||||||
|
|
||||||
if((is_a($output, 'Object') || is_subclass_of($output, 'Object')) && !$output->toBool()) return $output;
|
if((is_a($output, 'Object') || is_subclass_of($output, 'Object')) && !$output->toBool()) return $output;
|
||||||
|
|
||||||
$this->setError($oComponent->getError());
|
$this->setError($oComponent->getError());
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue