[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 01/01: Database::connect is obsolete
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 01/01: Database::connect is obsolete |
Date: |
Sun, 8 Sep 2019 12:37:21 -0400 (EDT) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 598fe8269644c5961a5dc5f8e487a6c4bba7c6ee
Author: Dany De Bontridder <address@hidden>
Date: Sat Sep 7 23:14:51 2019 +0200
Database::connect is obsolete
---
html/install.php | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/html/install.php b/html/install.php
index 75b2498..1c5a780 100644
--- a/html/install.php
+++ b/html/install.php
@@ -202,9 +202,9 @@ if (isset($_POST['save_config'])) {
require_once NOALYSS_INCLUDE.'/lib/config_file.php';
// Try to connect , if it doesn't work that do not create the config file
if ($multi=="N") {
- $cnx = Database::connect($db_user, $db_password,'template1', $db_host,
$db_port);
+ $cnx = new Database_Core($db_user, $db_password,'template1', $db_host,
$db_port);
}else {
- $cnx = Database::connect($db_user, $db_password,$db_name, $db_host,
$db_port);
+ $cnx = new Database_Core($db_user, $db_password,$db_name, $db_host,
$db_port);
}
// -----
// If conx successfull save the file or display it
@@ -644,4 +644,4 @@ echo "</h2>";
</p>
<p style="text-align: center">
<A style="display:inline;margin:10px;padding:10px;" class="button"
HREF="index.php?remove_install"><?php echo _("Essai effacement install.php et
se connecter à NOALYSS")?></A>
-</p>
\ No newline at end of file
+</p>