Changeset 5239 for trunk/admin/include


Ignore:
Timestamp:
Mar 22, 2010, 12:41:19 AM (15 years ago)
Author:
patdenice
Message:

feature 1255: Move $confdb_sqlite_default and $confdbengine_select_default in install.php (as constants).
PDO::SQLite is now displayed as SQLite in install page.
Always display unique SQLite engine.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/include/functions_install.inc.php

    r5220 r5239  
    105105  }
    106106
    107   if ($engines['sqlite']['available'] && $engines['pdo-sqlite']['available'])
     107  if ($engines['sqlite']['available'] and !$engines['pdo-sqlite']['available'])
    108108  {
    109     if ($GLOBALS['conf']['db_sqlite_default']=='native')
    110     {
    111       unset($engines['pdo-sqlite']);
    112     }
    113     else
    114     {
    115       unset($engines['sqlite']);
    116     }
     109    unset($engines['pdo-sqlite']);
     110  }
     111  elseif ($engines['pdo-sqlite']['available'] and !$engines['sqlite']['available'])
     112  {
     113    unset($engines['sqlite']);
     114  }
     115  elseif (DEFAULT_DB_SQLITE=='native')
     116  {
     117    unset($engines['pdo-sqlite']);
     118  }
     119  else
     120  {
     121    unset($engines['sqlite']);
    117122  }
    118123
Note: See TracChangeset for help on using the changeset viewer.