Bug tracker

This ticket has been moved to our new tracker. Open Ticket PHPBB3-109 now.

1 year = x days? (yes, again) (fix completed in vcs)

viewtopic.php, Line 300:
Code: Select all
$limit_days = array(0 => $user->lang['ALL_POSTS'], 1 => $user->lang['1_DAY'], 7 => $user->lang['7_DAYS'], 14 => $user->lang['2_WEEKS'], 30 => $user->lang['1_MONTH'], 90 => $user->lang['3_MONTHS'], 180 => $user->lang['6_MONTHS'], 364 => $user->lang['1_YEAR']);


The rest is said in #1180

Greetz
alcaeus

Comments / History

Posted by Yawner on Mar 21st 2006, 12:53

And what number does an array begin with??

Posted by alcaeus (I've Been Banned!) on Mar 22nd 2006, 10:08

Yawner wrote:And what number does an array begin with??

Um zero, but I assume you knew that already. I'm just wondering why you are asking that question...

Greetz
alcaeus

Posted by Yawner on Mar 22nd 2006, 21:53

lol 364 + 1 (0) == 365.. Im guessing thats the reasoning behind this.. however it is a valid bug as leap years are not accounted for..

(I could be wrong through.. and it is just a typo)..

Yawnster

Posted by alcaeus (I've Been Banned!) on Mar 23rd 2006, 08:37

lol...no. If the index is 364, it is 364, nothing is added to that. Besides that, what does this look like?
Code: Select all
<option value="364">1 Year</option>

It's from phpBB2 because I don't feel like looking for the address to my Olympus, but as I said, it appears in both Wink

Greetz
alcaeus

Linked ticket with changeset: r5705

Action performed by naderman (Development Team Leader) on Mar 23rd 2006, 19:23

Ticket details

Related SVN changesets