mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
refactor: Default to only using mysqli (#4915)
* refactor: Default to only using mysqli * Remove includes/dbFacile.mysql.php * updated mres() function to remove $config global
This commit is contained in:
committed by
Tony Murray
parent
55f0d441e6
commit
cc01969b06
@@ -121,19 +121,11 @@ foreach ($filelist as $file) {
|
||||
d_echo("$line \n");
|
||||
|
||||
if ($line[0] != '#') {
|
||||
if ($config['db']['extension'] == 'mysqli') {
|
||||
$update = mysqli_query($database_link, $line);
|
||||
} else {
|
||||
$update = mysql_query($line);
|
||||
}
|
||||
$update = mysqli_query($database_link, $line);
|
||||
if (!$update) {
|
||||
$err++;
|
||||
if ($debug) {
|
||||
if ($config['db']['extension'] == 'mysqli') {
|
||||
echo mysqli_error($database_link)."\n";
|
||||
} else {
|
||||
echo mysql_error()."\n";
|
||||
}
|
||||
echo mysqli_error($database_link)."\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user