mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-05 11:32:12 +09:00
issue 92 add skin fix column in modules
add site_srl column in module_config table modiy module_config each site git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8651 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
24ee496a42
commit
f995a3cd66
11 changed files with 73 additions and 6 deletions
|
|
@ -860,6 +860,8 @@
|
|||
}
|
||||
}
|
||||
|
||||
$thumbnail = sprintf("%s%s/%s/thumbnail.png", $path, $dir, $skin);
|
||||
$skin_info->thumbnail = (file_exists($thumbnail))?$thumbnail:null;
|
||||
return $skin_info;
|
||||
}
|
||||
|
||||
|
|
@ -877,14 +879,15 @@
|
|||
* @brief Return module configurations
|
||||
* Global configuration is used to manage board, member and others
|
||||
**/
|
||||
function getModuleConfig($module) {
|
||||
if(!$GLOBALS['__ModuleConfig__'][$module]) {
|
||||
function getModuleConfig($module, $site_srl = 0) {
|
||||
if(!$GLOBALS['__ModuleConfig__'][$site_srl][$module]) {
|
||||
$args->module = $module;
|
||||
$args->site_srl = $site_srl;
|
||||
$output = executeQuery('module.getModuleConfig', $args);
|
||||
$config = unserialize($output->data->config);
|
||||
$GLOBALS['__ModuleConfig__'][$module] = $config;
|
||||
$GLOBALS['__ModuleConfig__'][$site_srl][$module] = $config;
|
||||
}
|
||||
return $GLOBALS['__ModuleConfig__'][$module];
|
||||
return $GLOBALS['__ModuleConfig__'][$site_srl][$module];
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue