mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-29 12:49:57 +03: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:
parent
f117dbe378
commit
a07188b3be
2 changed files with 10 additions and 5 deletions
|
@ -55,6 +55,7 @@
|
||||||
</span>
|
</span>
|
||||||
<input type="text" size="3" maxlength="2" name="nb_line_page" id="nb_line_page" value="{$NB_ROW_PAGE}" >
|
<input type="text" size="3" maxlength="2" name="nb_line_page" id="nb_line_page" value="{$NB_ROW_PAGE}" >
|
||||||
</li>
|
</li>
|
||||||
|
{if not $SPECIAL_USER}
|
||||||
<li>
|
<li>
|
||||||
<span class="property">
|
<span class="property">
|
||||||
<label for="template">{'Interface theme'|@translate}</label>
|
<label for="template">{'Interface theme'|@translate}</label>
|
||||||
|
@ -67,6 +68,7 @@
|
||||||
</span>
|
</span>
|
||||||
{html_options id=language name=language options=$language_options selected=$language_selection}
|
{html_options id=language name=language options=$language_options selected=$language_selection}
|
||||||
</li>
|
</li>
|
||||||
|
{/if}
|
||||||
<li>
|
<li>
|
||||||
<span class="property">
|
<span class="property">
|
||||||
<label for="recent_period">{'Recent period'|@translate}</label>
|
<label for="recent_period">{'Recent period'|@translate}</label>
|
||||||
|
|
|
@ -97,10 +97,13 @@ function save_profile_from_post($userdata, &$errors)
|
||||||
$special_user = in_array($userdata['id'], array($conf['guest_id'], $conf['default_user_id']));
|
$special_user = in_array($userdata['id'], array($conf['guest_id'], $conf['default_user_id']));
|
||||||
if ($special_user)
|
if ($special_user)
|
||||||
{
|
{
|
||||||
unset($_POST['mail_address'],
|
unset(
|
||||||
|
$_POST['mail_address'],
|
||||||
$_POST['password'],
|
$_POST['password'],
|
||||||
$_POST['use_new_pwd'],
|
$_POST['use_new_pwd'],
|
||||||
$_POST['passwordConf']
|
$_POST['passwordConf'],
|
||||||
|
$_POST['theme'],
|
||||||
|
$_POST['language']
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue