mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
Allow setting birth year to current year
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8807 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
46dac33b82
commit
9b494dbcac
2 changed files with 4 additions and 3 deletions
|
@ -107,6 +107,7 @@
|
||||||
<li>[Feature] Ability to define nullar/singular/plural language entries</li>
|
<li>[Feature] Ability to define nullar/singular/plural language entries</li>
|
||||||
<li>[Feature] Ability to mimic sprintf() calls with $user->lang() with the ability to correctly assign nullar/singular/plural language entries</li>
|
<li>[Feature] Ability to mimic sprintf() calls with $user->lang() with the ability to correctly assign nullar/singular/plural language entries</li>
|
||||||
<li>[Feature] Added the possibility to force user posts put in queue if post count is lower than an admin defined value. Guest posting is not affected by this setting.</li>
|
<li>[Feature] Added the possibility to force user posts put in queue if post count is lower than an admin defined value. Guest posting is not affected by this setting.</li>
|
||||||
|
<li>[Change] Allow setting birth year to current year.</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
|
@ -418,7 +418,7 @@ class ucp_profile
|
||||||
|
|
||||||
$now = getdate();
|
$now = getdate();
|
||||||
$s_birthday_year_options = '<option value="0"' . ((!$data['bday_year']) ? ' selected="selected"' : '') . '>--</option>';
|
$s_birthday_year_options = '<option value="0"' . ((!$data['bday_year']) ? ' selected="selected"' : '') . '>--</option>';
|
||||||
for ($i = $now['year'] - 100; $i < $now['year']; $i++)
|
for ($i = $now['year'] - 100; $i <= $now['year']; $i++)
|
||||||
{
|
{
|
||||||
$selected = ($i == $data['bday_year']) ? ' selected="selected"' : '';
|
$selected = ($i == $data['bday_year']) ? ' selected="selected"' : '';
|
||||||
$s_birthday_year_options .= "<option value=\"$i\"$selected>$i</option>";
|
$s_birthday_year_options .= "<option value=\"$i\"$selected>$i</option>";
|
||||||
|
|
Loading…
Add table
Reference in a new issue