[geeklog-cvs] geeklog-1.3/public_html/admin story.php,1.128,1.129
blaine at iowaoutdoors.org
blaine at iowaoutdoors.org
Wed Aug 25 18:54:28 EDT 2004
Update of /var/cvs/geeklog-1.3/public_html/admin
In directory www:/tmp/cvs-serv10892/public_html/admin
Modified Files:
story.php
Log Message:
Archive date will now default to today's date if editing a story where archive feature was not enabled.
Index: story.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/public_html/admin/story.php,v
retrieving revision 1.128
retrieving revision 1.129
diff -C2 -d -r1.128 -r1.129
*** story.php 23 Aug 2004 12:38:51 -0000 1.128
--- story.php 25 Aug 2004 22:54:25 -0000 1.129
***************
*** 342,346 ****
$story_templates->set_var('story_unixstamp', $A['unixdate']);
/* Auto Story Arhive or Delete Feature */
! if ($A['expiredate'] == 0) {
$A['expiredate'] = time();
}
--- 342,346 ----
$story_templates->set_var('story_unixstamp', $A['unixdate']);
/* Auto Story Arhive or Delete Feature */
! if ($A['expiredate'] == 0 or date('Y', $A['expiredate']) < 2000) {
$A['expiredate'] = time();
}
More information about the geeklog-cvs
mailing list