summaryrefslogtreecommitdiffstats
path: root/lib/install.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2009-12-14 14:37:12 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2009-12-14 14:37:12 +0000
commit85e6e5ad1ce29b96fc5555a9e12d0e909b5e61e3 (patch)
tree469e47ab5d4bc83d5c02af20dce07e563f58121c /lib/install.php
parent30b8ff698d0612bbc64151927fc94873914606f8 (diff)
downloadampache-85e6e5ad1ce29b96fc5555a9e12d0e909b5e61e3.tar.gz
ampache-85e6e5ad1ce29b96fc5555a9e12d0e909b5e61e3.tar.bz2
ampache-85e6e5ad1ce29b96fc5555a9e12d0e909b5e61e3.zip
move a few more mysql_??? to Dba calls
Diffstat (limited to 'lib/install.php')
-rw-r--r--lib/install.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/install.php b/lib/install.php
index a90808c8..d137135c 100644
--- a/lib/install.php
+++ b/lib/install.php
@@ -210,14 +210,14 @@ function install_insert_db($username,$password,$hostname,$database) {
if ($mysql_version >= '500') {
$sql = "ALTER DATABASE `" . Dba::escape($database) . "` DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci";
- $db_results = mysql_query($sql);
+ $db_results = Dba::write($sql);
}
if(Config::get('lang') != 'en_US') {
$sql = "UPDATE `preference` SET `value`='" . Config::get('lang') . "' WHERE `id`=31";
- $db_results = mysql_query($sql);
+ $db_results = Dba::write($sql);
$sql = "UPDATE `user_preference` SET `value`='" .Config::get('lang') ."' WHERE `preference`=31";
- $db_results = mysql_query($sql);
+ $db_results = Dba::write($sql);
}
return true;