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:
Neil Lathwood
2016-11-11 01:40:53 +00:00
committed by Tony Murray
parent 55f0d441e6
commit cc01969b06
9 changed files with 577 additions and 1185 deletions

View File

@@ -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)