bayes: fix mal-written case-statemens in setupdB
Thanks for catching that, @Ian
This commit is contained in:
parent
5e1c650353
commit
7cf706b017
|
@ -1,3 +1,6 @@
|
|||
0.4.21:
|
||||
* Fix mal-written case-statemens in setupdb, blocking sqlite
|
||||
|
||||
0.4.20:
|
||||
* Fix: Errornous setupDB() call deleted recycler
|
||||
* Fix: Restoring comments from recycler deleted comment without restoring them
|
||||
|
|
|
@ -42,7 +42,7 @@ class serendipity_event_spamblock_bayes extends serendipity_event {
|
|||
$this->title = PLUGIN_EVENT_SPAMBLOCK_BAYES_NAME;
|
||||
$propbag->add ( 'description', PLUGIN_EVENT_SPAMBLOCK_BAYES_DESC);
|
||||
$propbag->add ( 'name', $this->title);
|
||||
$propbag->add ( 'version', '0.4.20' );
|
||||
$propbag->add ( 'version', '0.4.21' );
|
||||
$propbag->add ( 'event_hooks', array ('frontend_saveComment' => true,
|
||||
'backend_spamblock_comments_shown' => true,
|
||||
'external_plugin' => true,
|
||||
|
@ -499,10 +499,10 @@ class serendipity_event_spamblock_bayes extends serendipity_event {
|
|||
LIKE
|
||||
{$serendipity['dbPrefix']}comments";
|
||||
break;
|
||||
case $serendipity['dbType'] == 'sqlite':
|
||||
case $serendipity['dbType'] == 'sqlite3':
|
||||
case $serendipity['dbType'] == 'pdo-sqlite':
|
||||
case $serendipity['dbType'] == 'pdo-sqliteoo':
|
||||
case 'sqlite':
|
||||
case 'sqlite3':
|
||||
case 'pdo-sqlite':
|
||||
case 'pdo-sqliteoo':
|
||||
$sql = "SELECT sql FROM sqlite_master WHERE type = 'table' AND name = '{$serendipity['dbPrefix']}comments';";
|
||||
$sql = serendipity_db_query($sql);
|
||||
if (is_array($sql)) {
|
||||
|
|
Loading…
Reference in a new issue