mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +02: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:
@@ -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':
|
||||
|
Reference in New Issue
Block a user