feature 2773: add pwg_db_close() method
git-svn-id: http://piwigo.org/svn/trunk@18634 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
97294dac5a
commit
cb11878233
3 changed files with 7 additions and 2 deletions
|
|
@ -1676,7 +1676,7 @@ function create_table_add_character_set($query)
|
||||||
defined('DB_CHARSET') or fatal_error('create_table_add_character_set DB_CHARSET undefined');
|
defined('DB_CHARSET') or fatal_error('create_table_add_character_set DB_CHARSET undefined');
|
||||||
if ('DB_CHARSET'!='')
|
if ('DB_CHARSET'!='')
|
||||||
{
|
{
|
||||||
if ( version_compare(mysql_get_server_info(), '4.1.0', '<') )
|
if ( version_compare(pwg_get_db_version(), '4.1.0', '<') )
|
||||||
{
|
{
|
||||||
return $query;
|
return $query;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
2
i.php
2
i.php
|
|
@ -518,7 +518,7 @@ else
|
||||||
{
|
{
|
||||||
$page['rotation_angle'] = 0;
|
$page['rotation_angle'] = 0;
|
||||||
}
|
}
|
||||||
mysql_close($pwg_db_link);
|
pwg_db_close($pwg_db_link);
|
||||||
|
|
||||||
if (!try_switch_source($params, $src_mtime) && $params->type==IMG_CUSTOM)
|
if (!try_switch_source($params, $src_mtime) && $params->type==IMG_CUSTOM)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -178,6 +178,11 @@ function pwg_db_insert_id($table=null, $column='id')
|
||||||
return mysql_insert_id();
|
return mysql_insert_id();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function pwg_db_close($link=null)
|
||||||
|
{
|
||||||
|
return mysql_close($link);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* complex functions
|
* complex functions
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue