[geeklog-cvs] Geeklog-1.x/system lib-story.php,1.106,1.107

Dirk Haun dhaun at qs1489.pair.com
Mon Sep 17 16:28:46 EDT 2007


Update of /cvsroot/geeklog/Geeklog-1.x/system
In directory qs1489.pair.com:/tmp/cvs-serv59905/system

Modified Files:
	lib-story.php 
Log Message:
Fixed draft handling (when receiving a story - still seems to be wrong when sending it)


Index: lib-story.php
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/system/lib-story.php,v
retrieving revision 1.106
retrieving revision 1.107
diff -C2 -d -r1.106 -r1.107
*** lib-story.php	17 Sep 2007 19:29:07 -0000	1.106
--- lib-story.php	17 Sep 2007 20:28:44 -0000	1.107
***************
*** 1110,1115 ****
          }
  
!         if (empty($args['draft_flag'])) {
!             $args['draft_flag'] = $_CONF['draft_flag'];
          }
  
--- 1110,1124 ----
          }
  
!         if (isset($args['control'])) {
!             foreach ($args['control'] as $key => $value) {
!                 if ($key == 'draft') {
!                     $args['draft'] = ($value == 'yes' ? 1 : 0);
!                     break;
!                 }
!             }
!         }
! 
!         if (!isset($args['draft'])) {
!             $args['draft'] = $_CONF['draft_flag'];
          }
  




More information about the geeklog-cvs mailing list