mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-12 15:21:40 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@420 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
5dfec5a0c4
commit
99ca20908e
7 changed files with 50 additions and 8 deletions
|
|
@ -70,7 +70,6 @@
|
|||
$cache_file = sprintf('./files/cache/plugin/%s.cache.php', $plugin);
|
||||
if(file_exists($cache_file)&&filectime($cache_file)>filectime($xml_file)) {
|
||||
include $cache_file;
|
||||
debugPrint($plugin_info);
|
||||
return $plugin_info;
|
||||
}
|
||||
|
||||
|
|
@ -101,6 +100,7 @@
|
|||
if(!is_array($xml_obj->extra_vars->var)) $extra_vars[] = $xml_obj->extra_vars->var;
|
||||
else $extra_vars = $xml_obj->extra_vars->var;
|
||||
$extra_var_count = count($extra_vars);
|
||||
|
||||
$buff .= sprintf('$plugin_info->extra_var_count = "%s";', $extra_var_count);
|
||||
for($i=0;$i<$extra_var_count;$i++) {
|
||||
unset($var);
|
||||
|
|
@ -116,8 +116,8 @@
|
|||
|
||||
if(!is_array($options)) $options = array($options);
|
||||
$options_count = count($options);
|
||||
for($i=0;$i<$options_count;$i++) {
|
||||
$buff .= sprintf('$plugin_info->extra_var->%s->options["%s"] = "%s";', $var->attrs->id, $options[$i]->value->body, $options[$i]->name->body);
|
||||
for($j=0;$j<$options_count;$j++) {
|
||||
$buff .= sprintf('$plugin_info->extra_var->%s->options["%s"] = "%s";', $var->attrs->id, $options[$j]->value->body, $options[$j]->name->body);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue