mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-01 00:02:21 +09:00
issue 559 apply multilang in signup form
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9707 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
4e4eac40c5
commit
29d5cc38ed
3 changed files with 12 additions and 2 deletions
|
|
@ -25,6 +25,15 @@
|
|||
// Get member configuration stored in the DB
|
||||
$oModuleModel = &getModel('module');
|
||||
$config = $oModuleModel->getModuleConfig('member');
|
||||
//for multi language
|
||||
if(is_array($config->signupForm))
|
||||
{
|
||||
foreach($config->signupForm AS $key=>$value)
|
||||
{
|
||||
$config->signupForm[$key]->title = Context::getLang($value->title);
|
||||
}
|
||||
}
|
||||
|
||||
// Get terms of user
|
||||
$agreement_file = _XE_PATH_.'files/member_extra_info/agreement.txt';
|
||||
if(file_exists($agreement_file)) $config->agreement = FileHandler::readFile($agreement_file);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue