aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authormistic100 <mistic@piwigo.org>2013-02-12 11:37:34 +0000
committermistic100 <mistic@piwigo.org>2013-02-12 11:37:34 +0000
commit9722255086986740db16f9c4b57395d244ce2fb0 (patch)
treeab3bc43ef76586e797baf9488b471aca76d1e510 /admin
parente8bdcecfeb97a8f12d7c1de06f77067a4dd307e1 (diff)
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
Diffstat (limited to '')
-rw-r--r--admin/include/functions_install.inc.php55
1 files changed, 0 insertions, 55 deletions
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
@@ -69,61 +69,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.
*
* @return void