From 827a7986dc6d1939df5a2a98f27e4a48ccef1e00 Mon Sep 17 00:00:00 2001 From: Grischa Brockhaus Date: Sat, 11 Aug 2012 14:59:23 +0200 Subject: [PATCH] commentSpice: Delete old configuration entries that have moved to the spambee in order to not confuse 2k11 --- serendipity_event_commentspice/ChangeLog | 3 +++ .../serendipity_event_commentspice.php | 9 ++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/serendipity_event_commentspice/ChangeLog b/serendipity_event_commentspice/ChangeLog index 68cfb737..27ae713f 100644 --- a/serendipity_event_commentspice/ChangeLog +++ b/serendipity_event_commentspice/ChangeLog @@ -1,3 +1,6 @@ +Version 1.05 +* Delete old configuration entries that have moved to the spambee in order to not confuse 2k11 + Version 1.04 * Only show CommentSpice elements if in article view (not in contact form i.e.). diff --git a/serendipity_event_commentspice/serendipity_event_commentspice.php b/serendipity_event_commentspice/serendipity_event_commentspice.php index 1b46ea7f..a2b1bc1e 100644 --- a/serendipity_event_commentspice/serendipity_event_commentspice.php +++ b/serendipity_event_commentspice/serendipity_event_commentspice.php @@ -34,7 +34,7 @@ class serendipity_event_commentspice extends serendipity_event 'smarty' => '2.6.7', 'php' => '4.1.0' )); - $propbag->add('version', '1.04'); + $propbag->add('version', '1.05'); $propbag->add('event_hooks', array( 'entry_display' => true, @@ -419,6 +419,13 @@ class serendipity_event_commentspice extends serendipity_event } } } + + // Clean up old configurations: + serendipity_db_query("DELETE FROM {$serendipity['dbPrefix']}config where name like 'serendipity_event_commentspice:%required_fields';"); + serendipity_db_query("DELETE FROM {$serendipity['dbPrefix']}config where name like 'serendipity_event_commentspice:%do_honeypod';"); + serendipity_db_query("DELETE FROM {$serendipity['dbPrefix']}config where name like 'serendipity_event_commentspice:%do_honeypot';"); + serendipity_db_query("DELETE FROM {$serendipity['dbPrefix']}config where name like 'serendipity_event_commentspice:%spamlogtype';"); + serendipity_db_query("DELETE FROM {$serendipity['dbPrefix']}config where name like 'serendipity_event_commentspice:%spamlogfile';"); } function printHeader($eventData) {