diff options
author | nikrou <nikrou@piwigo.org> | 2010-02-26 20:10:51 +0000 |
---|---|---|
committer | nikrou <nikrou@piwigo.org> | 2010-02-26 20:10:51 +0000 |
commit | 4986d620e35d0ddecfb88c444cc220d379a48cda (patch) | |
tree | 847d2a567c7ef6a20209b184ce3885541db672a0 /admin/include/functions_install.inc.php | |
parent | 0e45412d84e2745569c97c0ecba0f5d905c94c45 (diff) |
Feature 1459 : add support for SQLite3 via PDO
git-svn-id: http://piwigo.org/svn/trunk@4967 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | admin/include/functions_install.inc.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/admin/include/functions_install.inc.php b/admin/include/functions_install.inc.php index 1a657a874..65b1a24d6 100644 --- a/admin/include/functions_install.inc.php +++ b/admin/include/functions_install.inc.php @@ -87,10 +87,17 @@ function available_engines() foreach ($dblayers as $engine_name => $engine) { if (file_exists(sprintf($pattern, $engine_name)) + && isset($engine['function_available']) && function_exists($engine['function_available'])) { $engines[$engine_name] = $engine['engine']; } + elseif (file_exists(sprintf($pattern, $engine_name)) + && isset($engine['class_available']) + && class_exists($engine['class_available'])) + { + $engines[$engine_name] = $engine['engine']; + } } return $engines; |