From 559e98776530e4da105f6a631b236dab155d5f5a Mon Sep 17 00:00:00 2001 From: zero Date: Thu, 22 Nov 2007 02:32:05 +0000 Subject: [PATCH] =?UTF-8?q?=EC=97=90=EB=94=94=ED=84=B0=20=EC=BB=A8?= =?UTF-8?q?=ED=8A=B8=EB=A1=A4=EB=A1=9C=EC=9D=98=20method=20=EC=8B=A4?= =?UTF-8?q?=ED=96=89=20=EB=B6=80=EB=B6=84=20=EC=88=98=EC=A0=95.=20?= =?UTF-8?q?=ED=8A=B8=EB=A3=A8=EB=A8=BC=EB=8B=98=EC=9D=98=20=EC=BD=94?= =?UTF-8?q?=EB=93=9C=EC=97=90=EC=84=9C=20=EC=97=90=EB=9F=AC=20=EB=B6=80?= =?UTF-8?q?=EB=B6=84=20=ED=8C=8C=EC=95=85.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3041 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- modules/editor/editor.controller.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/editor/editor.controller.php b/modules/editor/editor.controller.php index 2af91de89..15381264b 100644 --- a/modules/editor/editor.controller.php +++ b/modules/editor/editor.controller.php @@ -59,7 +59,10 @@ 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_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; $this->setError($oComponent->getError());