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:
Chris Smith 2008-09-02 12:12:30 +00:00
parent 46dac33b82
commit 9b494dbcac
2 changed files with 4 additions and 3 deletions

View file

@ -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-&gt;lang() with the ability to correctly assign nullar/singular/plural language entries</li> <li>[Feature] Ability to mimic sprintf() calls with $user-&gt;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>
@ -708,4 +709,4 @@
</div> </div>
</body> </body>
</html> </html>

View file

@ -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>";
@ -633,4 +633,4 @@ class ucp_profile
} }
} }
?> ?>