plugins/calendar/autoinstall.php
branchHEAD
changeset 7033 9089a0c77860
parent 6602 e85cfa6ea9fe
child 7344 3e03947c0624
     1.1 --- a/plugins/calendar/autoinstall.php	Sun Dec 28 10:13:44 2008 +0100
     1.2 +++ b/plugins/calendar/autoinstall.php	Sun May 17 16:30:39 2009 +0200
     1.3 @@ -95,6 +95,15 @@
     1.4  
     1.5  function plugin_compatible_with_this_version_calendar($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('COM_printUpcomingEvents')) {
    1.17          // if this function exists, then someone's trying to install the
    1.18          // plugin on Geeklog 1.4.0 or older - sorry, but that won't work