mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-01 20:04:51 +02:00
merge r6311 from branch 2.1 to trunk
bug 1683 fixed: as soon as an admin modifies the admin>conf>options>guest settings, registration is broken. This is because user_infos.theme/language are emptied (while they should not). I have also added an "automatic repair" piece of code in get_default_user_info function. This piece of code should be removed for 2.2 with the appropriate migration task. git-svn-id: http://piwigo.org/svn/trunk@6314 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -105,6 +105,8 @@ function save_profile_from_post($userdata, &$errors)
|
||||
$_POST['theme'],
|
||||
$_POST['language']
|
||||
);
|
||||
$_POST['theme'] = get_default_theme();
|
||||
$_POST['language'] = get_default_language();
|
||||
}
|
||||
|
||||
if ($conf['allow_user_customization'] or defined('IN_ADMIN'))
|
||||
|
||||
Reference in New Issue
Block a user