[pLog-svn] future-posts explanation?

Jon Daley plogworld at jon.limedaley.com
Mon Sep 3 18:05:34 EDT 2007


 	This code seems to be wrong, but I see that it hasn't been changed 
in forever.

scenario: show_future_posts_in_calendar is set to 1.

If no date is set in the request, then the maxDate is set, so then future 
articles won't be shown.

If the date is set in the request, then the maxDate is not set, and the 
query succeeds.

Is this the desired behavior?

class/action/defaultaction.class.php::
if(($blogSettings->getValue('show_future_posts_in_calendar')) &&
    ($this->_date > -1)){
     // if posts in the future are to be shown, we shouldn't set a maximum date
       $todayTimestamp = 0;
}



I would have expected the this->_date to not be taken into account when 
deciding whether to show future posts or not.


More information about the pLog-svn mailing list