mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 20:38:52 +00:00
Well, let's add the implementation. :|
git-svn-id: file:///svn/phpbb/trunk@7794 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
83fee1b8aa
commit
6f41f5be78
1 changed files with 15 additions and 0 deletions
|
@ -430,6 +430,21 @@ function validate_config_vars($config_vars, &$cfg_array, &$error)
|
|||
|
||||
break;
|
||||
|
||||
// Absolute path
|
||||
case 'lang':
|
||||
if (!$cfg_array[$config_name])
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
$cfg_array[$config_name] = basename($cfg_array[$config_name]);
|
||||
|
||||
if (!file_exists($phpbb_root_path . 'language/' . $cfg_array[$config_name] . '/'))
|
||||
{
|
||||
$error[] = $user->lang['WRONG_DATA_LANG'];
|
||||
}
|
||||
break;
|
||||
|
||||
// Relative path (appended $phpbb_root_path)
|
||||
case 'rpath':
|
||||
case 'rwpath':
|
||||
|
|
Loading…
Add table
Reference in a new issue