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
@@ -397,12 +397,8 @@ function truncate($substring, $max = 50, $rep = '...')
|
||||
function mres($string)
|
||||
{
|
||||
// short function wrapper because the real one is stupidly long and ugly. aesthetics.
|
||||
global $config, $database_link;
|
||||
if ($config['db']['extension'] == 'mysqli') {
|
||||
return mysqli_real_escape_string($database_link, $string);
|
||||
} else {
|
||||
return mysql_real_escape_string($string);
|
||||
}
|
||||
global $database_link;
|
||||
return mysqli_real_escape_string($database_link, $string);
|
||||
}
|
||||
|
||||
function getifhost($id)
|
||||
|
Reference in New Issue
Block a user