mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
bug 1634: default theme and default language have a specific page, ability to
set them from guest settings was removed. git-svn-id: http://piwigo.org/svn/trunk@5996 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
13
profile.php
13
profile.php
@@ -97,11 +97,14 @@ function save_profile_from_post($userdata, &$errors)
|
||||
$special_user = in_array($userdata['id'], array($conf['guest_id'], $conf['default_user_id']));
|
||||
if ($special_user)
|
||||
{
|
||||
unset($_POST['mail_address'],
|
||||
$_POST['password'],
|
||||
$_POST['use_new_pwd'],
|
||||
$_POST['passwordConf']
|
||||
);
|
||||
unset(
|
||||
$_POST['mail_address'],
|
||||
$_POST['password'],
|
||||
$_POST['use_new_pwd'],
|
||||
$_POST['passwordConf'],
|
||||
$_POST['theme'],
|
||||
$_POST['language']
|
||||
);
|
||||
}
|
||||
|
||||
if ($conf['allow_user_customization'] or defined('IN_ADMIN'))
|
||||
|
||||
Reference in New Issue
Block a user