plugins/xmlsitemap/autoinstall.php
branchHEAD
changeset 7033 9089a0c77860
parent 7029 99e5a429c202
child 7036 3820f9fa0da8
     1.1 --- a/plugins/xmlsitemap/autoinstall.php	Sun May 17 10:05:01 2009 +0200
     1.2 +++ b/plugins/xmlsitemap/autoinstall.php	Sun May 17 16:30:39 2009 +0200
     1.3 @@ -109,6 +109,15 @@
     1.4  */
     1.5  function plugin_compatible_with_this_version_xmlsitemap($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      return function_exists('PLG_itemDeleted');
    1.17  }
    1.18