1.1 --- a/plugins/spamx/autoinstall.php Sun Mar 15 18:57:47 2009 +0100
1.2 +++ b/plugins/spamx/autoinstall.php Sun May 17 16:30:39 2009 +0200
1.3 @@ -114,6 +114,15 @@
1.4 */
1.5 function plugin_compatible_with_this_version_spamx($pi_name)
1.6 {
1.7 + global $_CONF, $_DB_dbms;
1.8 +
1.9 + // check if we support the DBMS the site is running on
1.10 + $dbFile = $_CONF['path'] . 'plugins/' . $pi_name . '/sql/'
1.11 + . $_DB_dbms . '_install.php';
1.12 + if (! file_exists($dbFile)) {
1.13 + return false;
1.14 + }
1.15 +
1.16 if (! function_exists('PLG_spamAction')) {
1.17 return false;
1.18 }