mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@689 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
207b4828e0
commit
f48b8f131b
2 changed files with 8 additions and 4 deletions
|
|
@ -15,10 +15,11 @@
|
|||
|
||||
// $plugin의 객체를 받음
|
||||
$oPlugin = PluginHandler::getObject($plugin);
|
||||
if(!$oPlugin) return;
|
||||
|
||||
// 플러그인 실행
|
||||
//$output = $oPlugin->proc($args);
|
||||
//print $output;
|
||||
$output = $oPlugin->proc($args);
|
||||
print $output;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -40,8 +41,9 @@
|
|||
$eval_str = sprintf('$oPlugin = new %s();', $plugin);
|
||||
@eval($eval_str);
|
||||
if(!is_object($oPlugin)) return sprintf(Context::getLang('msg_plugin_object_is_null'), $plugin);
|
||||
|
||||
if(!method_exists($oPlugin, 'proc')) return sprintf(Context::getLang('msg_plugin_proc_is_null'), $plugin);
|
||||
|
||||
return $oPlugin;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue