get rid of direct references to Database's engine

This commit is contained in:
Shish
2012-06-24 00:57:55 +01:00
parent d313cea8a7
commit 38f7555d98
11 changed files with 41 additions and 47 deletions

View File

@@ -155,7 +155,7 @@ class ImageBan extends Extension {
$args[] = "%".$_GET['reason']."%";
}
$where = implode(" AND ", $where);
$bans = $database->get_all($database->engine->scoreql_to_sql("
$bans = $database->get_all($database->scoreql_to_sql("
SELECT *
FROM image_bans
WHERE $where