mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-01 16:22:41 +09:00
Merge pull request #1368
Conflicts: classes/module/ModuleHandler.class.php
This commit is contained in:
commit
97bb66527f
3 changed files with 9 additions and 14 deletions
|
|
@ -550,8 +550,7 @@ class editorModel extends editor
|
|||
if(!file_exists($class_file)) return new Object(-1, sprintf(Context::getLang('msg_component_is_not_founded'), $component));
|
||||
// Create an object after loading the class file
|
||||
require_once($class_file);
|
||||
$tmp_fn = create_function('$seq,$path', "return new {$component}(\$seq,\$path);");
|
||||
$oComponent = $tmp_fn($editor_sequence, $class_path);
|
||||
$oComponent = new $component($editor_sequence, $class_path);
|
||||
if(!$oComponent) return new Object(-1, sprintf(Context::getLang('msg_component_is_not_founded'), $component));
|
||||
// Add configuration information
|
||||
$component_info = $this->getComponent($component, $site_srl);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue