issue 873 add multilanguage agreement.

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.3.1@10966 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
devjin 2012-08-01 09:14:46 +00:00
parent 1d4bb452d0
commit 9d9b6f1c12
3 changed files with 15 additions and 4 deletions

View file

@ -35,8 +35,8 @@
}
// Get terms of user
$agreement_file = _XE_PATH_.'files/member_extra_info/agreement.txt';
if(!$config->agreement && file_exists($agreement_file)) $config->agreement = FileHandler::readFile($agreement_file);
$agreement_file = _XE_PATH_.'files/member_extra_info/agreement_' . Context::get('lang_type') . '.txt';
if(is_readable($agreement_file)) $config->agreement = FileHandler::readFile($agreement_file);
if(!$config->webmaster_name) $config->webmaster_name = 'webmaster';
if(!$config->image_name_max_width) $config->image_name_max_width = 90;