[pLog-CVS] plog/class/action defaultaction.class.php,1.3,1.4
Brought to you by:
jondaley
From: Oscar R. <phu...@us...> - 2004-04-04 11:39:26
|
Update of /cvsroot/plog/plog/class/action In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14397/class/action Modified Files: defaultaction.class.php Log Message: added support for showing future events in the calendar Index: defaultaction.class.php =================================================================== RCS file: /cvsroot/plog/plog/class/action/defaultaction.class.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** defaultaction.class.php 20 Jan 2004 18:44:02 -0000 1.3 --- defaultaction.class.php 4 Apr 2004 11:26:58 -0000 1.4 *************** *** 75,81 **** // gets... look at this call and look at how many parameters it needs!! :( // ! $blogArticles = $articles->getBlogArticles( $blogId, $this->_date, ! $blogSettings->getValue("show_posts_max"), $this->_categoryId, ! POST_STATUS_PUBLISHED, 0, $todayTimestamp ); // if we couldn't fetch the articles, send an error and quit --- 75,90 ---- // gets... look at this call and look at how many parameters it needs!! :( // ! $config =& Config::getConfig(); ! if( ($config->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 ! $blogArticles = $articles->getBlogArticles( $blogId, $this->_date, ! $blogSettings->getValue("show_posts_max"), $this->_categoryId, ! POST_STATUS_PUBLISHED, 0 ); ! } ! else { ! $blogArticles = $articles->getBlogArticles( $blogId, $this->_date, ! $blogSettings->getValue("show_posts_max"), $this->_categoryId, ! POST_STATUS_PUBLISHED, 0, $todayTimestamp ); ! } // if we couldn't fetch the articles, send an error and quit |