aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Smith <toonarmy@phpbb.com>2008-09-02 12:12:30 +0000
committerChris Smith <toonarmy@phpbb.com>2008-09-02 12:12:30 +0000
commit9b494dbcacd662510d935545357ee7f58e76dce6 (patch)
tree1925c01666fd192f02b4719fed4febde8f01c4aa
parent46dac33b82198ee459ccdfb7bb5514a7d480bb05 (diff)
downloadforums-9b494dbcacd662510d935545357ee7f58e76dce6.tar
forums-9b494dbcacd662510d935545357ee7f58e76dce6.tar.gz
forums-9b494dbcacd662510d935545357ee7f58e76dce6.tar.bz2
forums-9b494dbcacd662510d935545357ee7f58e76dce6.tar.xz
forums-9b494dbcacd662510d935545357ee7f58e76dce6.zip
Allow setting birth year to current year
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8807 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r--phpBB/docs/CHANGELOG.html3
-rw-r--r--phpBB/includes/ucp/ucp_profile.php4
2 files changed, 4 insertions, 3 deletions
diff --git a/phpBB/docs/CHANGELOG.html b/phpBB/docs/CHANGELOG.html
index b63512889d..6851a09041 100644
--- a/phpBB/docs/CHANGELOG.html
+++ b/phpBB/docs/CHANGELOG.html
@@ -107,6 +107,7 @@
<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] 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>
@@ -708,4 +709,4 @@
</div>
</body>
-</html> \ No newline at end of file
+</html>
diff --git a/phpBB/includes/ucp/ucp_profile.php b/phpBB/includes/ucp/ucp_profile.php
index 8aacf8a244..7fdb25abfd 100644
--- a/phpBB/includes/ucp/ucp_profile.php
+++ b/phpBB/includes/ucp/ucp_profile.php
@@ -418,7 +418,7 @@ class ucp_profile
$now = getdate();
$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"' : '';
$s_birthday_year_options .= "<option value=\"$i\"$selected>$i</option>";
@@ -633,4 +633,4 @@ class ucp_profile
}
}
-?> \ No newline at end of file
+?>