From 9722255086986740db16f9c4b57395d244ce2fb0 Mon Sep 17 00:00:00 2001 From: mistic100 Date: Tue, 12 Feb 2013 11:37:34 +0000 Subject: feature:65 fix fatal error at the end of the install process, remove unused file and function git-svn-id: http://piwigo.org/svn/trunk@20721 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/include/functions_install.inc.php | 55 --------------------------------- 1 file changed, 55 deletions(-) (limited to 'admin/include/functions_install.inc.php') diff --git a/admin/include/functions_install.inc.php b/admin/include/functions_install.inc.php index 94e011cde..d9643e721 100644 --- a/admin/include/functions_install.inc.php +++ b/admin/include/functions_install.inc.php @@ -68,61 +68,6 @@ function execute_sqlfile($filepath, $replaced, $replacing, $dblayer) } } -/** - * Search for database engines available - * - * We search for functions_DATABASE_ENGINE.inc.php - * and we check if the connect function for that database exists - * - * @return array - */ -function available_engines() -{ - $engines = array(); - - $pattern = PHPWG_ROOT_PATH. 'include/dblayer/functions_%s.inc.php'; - include_once PHPWG_ROOT_PATH. 'include/dblayer/dblayers.inc.php'; - - foreach ($dblayers as $engine_name => $engine) - { - if (file_exists(sprintf($pattern, $engine_name))) - { - $engines[$engine_name]['label'] = $engine['engine']; - $engines[$engine_name]['available'] = false; - - if (isset($engine['function_available']) - && function_exists($engine['function_available'])) - { - $engines[$engine_name]['available'] = true; - } - elseif (isset($engine['class_available']) - && class_exists($engine['class_available'])) - { - $engines[$engine_name]['available'] = true; - } - } - } - - if ($engines['sqlite']['available'] and !$engines['pdo-sqlite']['available']) - { - unset($engines['pdo-sqlite']); - } - elseif ($engines['pdo-sqlite']['available'] and !$engines['sqlite']['available']) - { - unset($engines['sqlite']); - } - elseif (DEFAULT_DB_SQLITE=='native') - { - unset($engines['pdo-sqlite']); - } - else - { - unset($engines['sqlite']); - } - - return $engines; -} - /** * Automatically activate all core themes in the "themes" directory. * -- cgit v1.2.3