mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-30 16:49:58 +09:00
changed member config to static variable.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.3.2@11210 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
b8e09edb1f
commit
6ce2ee7887
1 changed files with 11 additions and 1 deletions
|
|
@ -21,7 +21,15 @@
|
||||||
/**
|
/**
|
||||||
* @brief Return member's configuration
|
* @brief Return member's configuration
|
||||||
**/
|
**/
|
||||||
function getMemberConfig() {
|
function getMemberConfig()
|
||||||
|
{
|
||||||
|
static $member_config;
|
||||||
|
|
||||||
|
if($member_config)
|
||||||
|
{
|
||||||
|
return $member_config;
|
||||||
|
}
|
||||||
|
|
||||||
// Get member configuration stored in the DB
|
// Get member configuration stored in the DB
|
||||||
$oModuleModel = &getModel('module');
|
$oModuleModel = &getModel('module');
|
||||||
$config = $oModuleModel->getModuleConfig('member');
|
$config = $oModuleModel->getModuleConfig('member');
|
||||||
|
|
@ -65,6 +73,8 @@
|
||||||
if (!$config->signature_editor_skin || $config->signature_editor_skin == 'default') $config->signature_editor_skin = 'xpresseditor';
|
if (!$config->signature_editor_skin || $config->signature_editor_skin == 'default') $config->signature_editor_skin = 'xpresseditor';
|
||||||
if (!$config->sel_editor_colorset) $config->sel_editor_colorset = 'white';
|
if (!$config->sel_editor_colorset) $config->sel_editor_colorset = 'white';
|
||||||
|
|
||||||
|
$member_config = $config;
|
||||||
|
|
||||||
return $config;
|
return $config;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue