mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-06 01:42:29 +02:00
- fix issue when picture_url_style = file (sql query like)
- sql call SET NAMES "xxx" (if required) in upgrade.php, upgrade_feed.php and after 65-database.php git-svn-id: http://piwigo.org/svn/trunk@2512 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -298,6 +298,11 @@ define(\'DB_COLLATE\', \'\');
|
||||
define('DB_CHARSET', $db_charset);
|
||||
define('DB_COLLATE', '');
|
||||
|
||||
if ( version_compare(mysql_get_server_info(), '4.1.0', '>=') and DB_CHARSET!='' )
|
||||
{
|
||||
pwg_query('SET NAMES "'.DB_CHARSET.'"');
|
||||
}
|
||||
|
||||
echo $upgrade_log;
|
||||
$fp = @fopen( PHPWG_ROOT_PATH.'upgrade65.log', 'w' );
|
||||
if ($fp)
|
||||
|
||||
Reference in New Issue
Block a user