diff options
Diffstat (limited to 'upgrade.php')
-rw-r--r-- | upgrade.php | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/upgrade.php b/upgrade.php index 4e01b9272..278f75da4 100644 --- a/upgrade.php +++ b/upgrade.php @@ -51,9 +51,15 @@ include_once(PHPWG_ROOT_PATH.'include/constants.php'); define('PREFIX_TABLE', $prefixeTable); // Database connection -$pwg_db_link = pwg_db_connect($conf['db_host'], $conf['db_user'], - $conf['db_password'], $conf['db_base']); -pwg_select_db($conf['db_base'], $pwg_db_link); +try +{ + $pwg_db_link = pwg_db_connect($conf['db_host'], $conf['db_user'], + $conf['db_password'], $conf['db_base']); +} +catch (Exception $e) +{ + my_error(l10n($e->getMessage(), true); +} pwg_db_check_charset(); |