[geeklog-cvs] geeklog: When deleting a static page, also delete its comments (...

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Sat Jun 6 08:47:59 EDT 2009


details:   http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/b72b3a2110bf
changeset: 7081:b72b3a2110bf
user:      Dirk Haun <dirk at haun-online.de>
date:      Sat Jun 06 14:20:47 2009 +0200
description:
When deleting a static page, also delete its comments (part of bug #0000901)

diffstat:

 plugins/staticpages/services.inc.php |   4 +++-
 public_html/docs/history             |  16 +++++++++++++++-
 2 files changed, 18 insertions(+), 2 deletions(-)

diffs (53 lines):

diff -r 62178ab439a4 -r b72b3a2110bf plugins/staticpages/services.inc.php
--- a/plugins/staticpages/services.inc.php	Sat Jun 06 09:32:26 2009 +0200
+++ b/plugins/staticpages/services.inc.php	Sat Jun 06 14:20:47 2009 +0200
@@ -472,7 +472,9 @@
         }
     }
 
-    DB_delete ($_TABLES['staticpage'], 'sp_id', $sp_id);
+    DB_delete($_TABLES['staticpage'], 'sp_id', $sp_id);
+    DB_delete($_TABLES['comments'], array('sid',  'type'),
+                                    array($sp_id, 'staticpages'));
 
     PLG_itemDeleted($sp_id, 'staticpages');
 
diff -r 62178ab439a4 -r b72b3a2110bf public_html/docs/history
--- a/public_html/docs/history	Sat Jun 06 09:32:26 2009 +0200
+++ b/public_html/docs/history	Sat Jun 06 14:20:47 2009 +0200
@@ -1,6 +1,6 @@
 Geeklog History/Changes:
 
-May 31, 2009 (1.6.0b2)
+Jun ??, 2009 (1.6.0rc1)
 ------------
 
 Geeklog 1.6.0 incorporates the following projects implemented during
@@ -10,6 +10,18 @@
 + Improved search, by Sami Barakat
 + Comment moderation and editable comments, by Jared Wenerd
 
+Changes since 1.6.0b2:
+- Removed old plugin API function plugin_commentsupport from the Calendar,
+  Polls, and Static Pages plugins.
+
+Static Pages plugin
+-------------------
+- When deleting a static page, also delete its comments (bug #0000901) [Dirk]
+
+
+May 31, 2009 (1.6.0b2)
+------------
+
 Changes since 1.6.0b1:
 - Various fixes to the new search (work in progress) [Sami]
 - The list of Comment Submissions now tries to provide a link to a comment's
@@ -171,6 +183,8 @@
   themselves [Dirk]
 - Gave the Groups and User editors a facelift. Requires a new template file,
   admin/lists/inline.thtml [Dirk]
+- Introduced list of "advanced HTML" tags that are allowed when FCKeditor is
+  enabled. Needed for images (bug #0000757) [Blaine]
 - Add new permissions plugin.install and plugin.upload for more fine-grained
   control to the plugin admin panel (bug #0000637) [Dirk]
 - Introduced new plugin API function PLG_itemDeleted [Dirk]



More information about the geeklog-cvs mailing list