forked from Cavemanon/cavepaintings
create the DB connection on demand; some pages don't require one at all thanks to caching
This commit is contained in:
@@ -69,7 +69,7 @@ function url_escape($input) {
|
||||
*/
|
||||
function sql_escape($input) {
|
||||
global $database;
|
||||
return $database->db->Quote($input);
|
||||
return $database->escape($input);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user