[pLog-svn] future-posts explanation?

Jon Daley plogworld at jon.limedaley.com
Tue Sep 4 06:30:29 EDT 2007


 	I am using it a bit more in an API way, so I wouldn't be too 
surprised if "regular" people aren't seeing it.  I'll play around with it 
some more.  (commenting out the this->_date part works for me for now)

On Tue, 4 Sep 2007, Oscar Renalias wrote:

> I have to say that I don't remember, but I think that this has also
> been working fine so far... (at least no one reported an issue with
> this)
>
> On 9/4/07, Jon Daley <plogworld at jon.limedaley.com> wrote:
>>         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.
>> _______________________________________________
>> pLog-svn mailing list
>> pLog-svn at devel.lifetype.net
>> http://limedaley.com/mailman/listinfo/plog-svn
>>
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.lifetype.net
> http://limedaley.com/mailman/listinfo/plog-svn
>

-- 
Jon Daley
http://jon.limedaley.com/

Atheism is a non-prophet organization


More information about the pLog-svn mailing list