create the DB connection on demand; some pages don't require one at all thanks to caching

This commit is contained in:
Shish
2012-06-24 00:50:13 +01:00
parent 98e7acc529
commit d313cea8a7
2 changed files with 47 additions and 14 deletions

View File

@@ -69,7 +69,7 @@ function url_escape($input) {
*/
function sql_escape($input) {
global $database;
return $database->db->Quote($input);
return $database->escape($input);
}