mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-07 09:13:02 +02:00
Fix php5 apache configuration with upgrade.
git-svn-id: http://piwigo.org/svn/trunk@5387 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -66,6 +66,8 @@ function prepare_conf_upgrade()
|
||||
define('IMAGE_TAG_TABLE', $prefixeTable.'image_tag');
|
||||
define('PLUGINS_TABLE', $prefixeTable.'plugins');
|
||||
define('OLD_PERMALINKS_TABLE', $prefixeTable.'old_permalinks');
|
||||
define('THEMES_TABLE', $prefixeTable.'themes');
|
||||
define('LANGUAGES_TABLE', $prefixeTable.'languages');
|
||||
}
|
||||
|
||||
// Deactivate all non-standard plugins
|
||||
@@ -213,4 +215,19 @@ SELECT id
|
||||
return (count(array_diff($existing, $applied)) > 0);
|
||||
}
|
||||
|
||||
function upgrade_db_connect()
|
||||
{
|
||||
global $conf;
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user