mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-04 00:42:20 +02:00
feature:65 pwg_db_connect doesn't return anything now
git-svn-id: http://piwigo.org/svn/trunk@20720 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -143,15 +143,11 @@ function activate_core_themes()
|
||||
|
||||
function install_db_connect(&$infos, &$errors)
|
||||
{
|
||||
global $pwg_db_link;
|
||||
|
||||
try
|
||||
{
|
||||
$pwg_db_link = pwg_db_connect($_POST['dbhost'], $_POST['dbuser'], $_POST['dbpasswd'], $_POST['dbname']);
|
||||
if ($pwg_db_link)
|
||||
{
|
||||
pwg_db_check_version();
|
||||
}
|
||||
pwg_db_connect($_POST['dbhost'], $_POST['dbuser'],
|
||||
$_POST['dbpasswd'], $_POST['dbname']);
|
||||
pwg_db_check_version();
|
||||
}
|
||||
catch (Exception $e)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user