[geeklog-cvs] geeklog-1.3/public_html/admin story.php,1.142,1.143

dhaun at iowaoutdoors.org dhaun at iowaoutdoors.org
Wed Dec 29 10:06:28 EST 2004


Update of /var/cvs/geeklog-1.3/public_html/admin
In directory www:/tmp/cvs-serv14974/public_html/admin

Modified Files:
	story.php 
Log Message:
When changing a story ID, update the story ID in any comments to that story, too (bug #357)


Index: story.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/public_html/admin/story.php,v
retrieving revision 1.142
retrieving revision 1.143
diff -C2 -d -r1.142 -r1.143
*** story.php	17 Dec 2004 12:04:46 -0000	1.142
--- story.php	29 Dec 2004 15:06:25 -0000	1.143
***************
*** 1155,1158 ****
--- 1155,1159 ----
          if ($delete_old_story && !empty ($old_sid)) {
              DB_delete ($_TABLES['stories'], 'sid', $old_sid);
+             DB_query ("UPDATE {$_TABLES['comments']} SET sid = '$sid' WHERE type = 'article' AND sid = '$old_sid'");
          }
  




More information about the geeklog-cvs mailing list