[geeklog-cvs] geeklog-1.3/public_html index.php,1.63,1.64

blaine at iowaoutdoors.org blaine at iowaoutdoors.org
Wed Aug 25 17:25:50 EDT 2004


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

Modified Files:
	index.php 
Log Message:
Added call to delete story images in for the storyArchive feature if story has expired and should be deleted.

Index: index.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/public_html/index.php,v
retrieving revision 1.63
retrieving revision 1.64
diff -C2 -d -r1.63 -r1.64
*** index.php	16 Aug 2004 10:44:44 -0000	1.63
--- index.php	25 Aug 2004 21:25:46 -0000	1.64
***************
*** 138,143 ****
      } elseif ($statuscode == STORY_DELETE_ON_EXPIRE) {
          COM_errorLOG("Delete Story and comments: $sid, Topic:$expiretopic, Title: $title. Expired :$expire");
!         DB_query("DELETE FROM {$_TABLES['stories']} WHERE sid='{$sid}'");
          DB_query("DELETE FROM {$_TABLES['comments']} WHERE sid='{$sid}'");
      }
  }
--- 138,144 ----
      } elseif ($statuscode == STORY_DELETE_ON_EXPIRE) {
          COM_errorLOG("Delete Story and comments: $sid, Topic:$expiretopic, Title: $title. Expired :$expire");
!         STORY_deleteImages ($sid);
          DB_query("DELETE FROM {$_TABLES['comments']} WHERE sid='{$sid}'");
+         DB_query("DELETE FROM {$_TABLES['stories']} WHERE sid='{$sid}'");
      }
  }




More information about the geeklog-cvs mailing list