commentSpice: Delete old configuration entries that have moved to the

spambee in order to not confuse 2k11
This commit is contained in:
Grischa Brockhaus 2012-08-11 14:59:23 +02:00
parent 510af38ef3
commit 827a7986dc
2 changed files with 11 additions and 1 deletions

View file

@ -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.).

View file

@ -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) {