mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-21 17:11:53 +02:00
[ticket/9970] Do not allow switching to languages not installed on reg. page.
PHPBB3-9970
This commit is contained in:
@@ -56,7 +56,7 @@ class ucp_register
|
||||
{
|
||||
$use_lang = ($change_lang) ? basename($change_lang) : basename($user_lang);
|
||||
|
||||
if (file_exists($user->lang_path . $use_lang . '/'))
|
||||
if (!validate_language($use_lang))
|
||||
{
|
||||
if ($change_lang)
|
||||
{
|
||||
|
Reference in New Issue
Block a user