[pLog-svn] r6008 - in plog/branches/lifetype-1.2/class: action dao

Jon Daley plogworld at jon.limedaley.com
Tue Oct 23 17:16:32 EDT 2007


http://limedaley.com/pipermail/plog-svn/2007-September/009108.html

On Tue, 23 Oct 2007, Jon Daley wrote:

> 	This change fixes the future post thing.  You didn't like my
> explanation last time we talked about it either.
>
> On Tue, 23 Oct 2007, Oscar Renalias wrote:
>
>> What does this change do? Why do you need to change something in
>> defaultaction.class.php?
>>
>> On 23 Oct 2007, at 17:33, Jon Daley wrote:
>>
>>>  	ack.  I didn't mean to check in both of these files.  We had a
>>> conversation about this a while back, and I think this is the right
>>> fix,
>>> but I think the argument against it was that no one else had
>>> complained
>>> about it.  I can revert the defaultaction change if someone wants.
>>>
>>> On Tue, 23 Oct 2007, jondaley at devel.lifetype.net wrote:
>>>
>>>> Author: jondaley
>>>> Date: 2007-10-23 10:31:33 -0400 (Tue, 23 Oct 2007)
>>>> New Revision: 6008
>>>>
>>>> Modified:
>>>>   plog/branches/lifetype-1.2/class/action/defaultaction.class.php
>>>>   plog/branches/lifetype-1.2/class/dao/article.class.php
>>>> Log:
>>>> this->_categories isn't always set prior to calling getCategory()
>>>>
>>>> Modified: plog/branches/lifetype-1.2/class/action/
>>>> defaultaction.class.php
>>>> ===================================================================
>>>> --- plog/branches/lifetype-1.2/class/action/
>>>> defaultaction.class.php	2007-10-23 11:19:57 UTC (rev 6007)
>>>> +++ plog/branches/lifetype-1.2/class/action/
>>>> defaultaction.class.php	2007-10-23 14:31:33 UTC (rev 6008)
>>>> @@ -169,7 +169,7 @@
>>>> 				$user = null;
>>>> 			}
>>>>
>>>> -			if( ($blogSettings->getValue
>>>> ( 'show_future_posts_in_calendar')) && ( $this->_date > -1 )) {
>>>> +			if($blogSettings->getValue( 'show_future_posts_in_calendar')){
>>>> 				// if posts in the future are to be shown, we shouldn't set a
>>>> maximum date
>>>> 				$todayTimestamp = 0;
>>>> 			}
>>>>
>>>> Modified: plog/branches/lifetype-1.2/class/dao/article.class.php
>>>> ===================================================================
>>>> --- plog/branches/lifetype-1.2/class/dao/article.class.php
>>>> 2007-10-23 11:19:57 UTC (rev 6007)
>>>> +++ plog/branches/lifetype-1.2/class/dao/article.class.php
>>>> 2007-10-23 14:31:33 UTC (rev 6008)
>>>> @@ -252,7 +252,8 @@
>>>> 		 */
>>>> 		function getCategory()
>>>> 		{
>>>> -			return $this->_categories[0];
>>>> +            $categories = $this->getCategories();
>>>> +			return $categories[0];
>>>> 		}
>>>>
>>>>         /**
>>>>
>>>> _______________________________________________
>>>> pLog-svn mailing list
>>>> pLog-svn at devel.lifetype.net
>>>> http://limedaley.com/mailman/listinfo/plog-svn
>>>>
>>>
>>> --
>>> Jon Daley
>>> http://jon.limedaley.com/
>>>
>>> We can do no great things; only small things with great love.
>>> -- Mother Teresa
>>> _______________________________________________
>>> 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/
>
> I have great faith in fools. My friends call it self confidence.
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.lifetype.net
> http://limedaley.com/mailman/listinfo/plog-svn
>

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

All who would win joy, must share it; happiness was born a twin.
-- Lord Byron


More information about the pLog-svn mailing list