mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 03:01:43 +09:00
Merge branch 'develop' into next
This commit is contained in:
commit
b419dcf2bc
2 changed files with 14 additions and 3 deletions
|
|
@ -1421,13 +1421,20 @@ class moduleModel extends module
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$config = new ArrayObject;
|
if (is_array($output->data->config))
|
||||||
|
{
|
||||||
|
$config = array();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$config = new stdClass;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// For access to array as properties
|
// Deprecate use of ArrayObject because of https://bugs.php.net/bug.php?id=77298
|
||||||
if($config instanceof ArrayObject)
|
if($config instanceof ArrayObject)
|
||||||
{
|
{
|
||||||
$config->setFlags(ArrayObject::ARRAY_AS_PROPS);
|
$config = (object)($config->getArrayCopy());
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set cache
|
// Set cache
|
||||||
|
|
|
||||||
|
|
@ -862,6 +862,10 @@ class pointController extends point
|
||||||
if (!isset(self::$_module_config_cache[$module_srl]))
|
if (!isset(self::$_module_config_cache[$module_srl]))
|
||||||
{
|
{
|
||||||
self::$_module_config_cache[$module_srl] = ModuleModel::getModulePartConfig('point', $module_srl);
|
self::$_module_config_cache[$module_srl] = ModuleModel::getModulePartConfig('point', $module_srl);
|
||||||
|
if (is_object(self::$_module_config_cache[$module_srl]))
|
||||||
|
{
|
||||||
|
self::$_module_config_cache[$module_srl] = get_object_vars(self::$_module_config_cache[$module_srl]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
$module_config = self::$_module_config_cache[$module_srl];
|
$module_config = self::$_module_config_cache[$module_srl];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue