aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--admin/include/functions.php2
-rw-r--r--i.php2
-rw-r--r--include/dblayer/functions_mysql.inc.php5
3 files changed, 7 insertions, 2 deletions
diff --git a/admin/include/functions.php b/admin/include/functions.php
index 01d1a4bab..8e310148e 100644
--- a/admin/include/functions.php
+++ b/admin/include/functions.php
@@ -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');
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;
}
diff --git a/i.php b/i.php
index 415a9168d..1416b4240 100644
--- a/i.php
+++ b/i.php
@@ -518,7 +518,7 @@ else
{
$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)
{
diff --git a/include/dblayer/functions_mysql.inc.php b/include/dblayer/functions_mysql.inc.php
index f33d616b0..32b6b1208 100644
--- a/include/dblayer/functions_mysql.inc.php
+++ b/include/dblayer/functions_mysql.inc.php
@@ -178,6 +178,11 @@ function pwg_db_insert_id($table=null, $column='id')
return mysql_insert_id();
}
+function pwg_db_close($link=null)
+{
+ return mysql_close($link);
+}
+
/**
*
* complex functions