Skip to content
Snippets Groups Projects
Commit 328c9627 authored by tim.niklas's avatar tim.niklas
Browse files

updated php4 code to php5 code

parent 6b6d7460
No related branches found
No related tags found
1 merge request!1Fix notices warnings
......@@ -321,7 +321,7 @@ class Install_Utils_Model {
//Checking for database connection parameters
if($db_type) {
$conn = &NewADOConnection($db_type);
$conn = NewADOConnection($db_type);
$db_type_status = true;
if(@$conn->Connect($db_hostname,$db_username,$db_password)) {
$db_server_status = true;
......@@ -331,7 +331,7 @@ class Install_Utils_Model {
}
if($create_db) {
// drop the current database if it exists
$dropdb_conn = &NewADOConnection($db_type);
$dropdb_conn = NewADOConnection($db_type);
if(@$dropdb_conn->Connect($db_hostname, $root_user, $root_password, $db_name)) {
$query = "DROP DATABASE ".$db_name;
$dropdb_conn->Execute($query);
......@@ -340,7 +340,7 @@ class Install_Utils_Model {
// create the new database
$db_creation_failed = true;
$createdb_conn = &NewADOConnection($db_type);
$createdb_conn = NewADOConnection($db_type);
if(@$createdb_conn->Connect($db_hostname, $root_user, $root_password)) {
$query = "CREATE DATABASE ".$db_name;
if($create_utf8_db == 'true') {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment