Moved database driver constants to DatabaseDriver

This commit is contained in:
Matthew Barbour
2019-06-20 10:42:32 -05:00
committed by matthew
parent d128dfa78e
commit 1370afec72
19 changed files with 57 additions and 53 deletions

View File

@@ -235,7 +235,7 @@ class IPBan extends Extension
{
global $config, $database;
$prefix = ($database->get_driver_name() == Database::SQLITE_DRIVER ? "bans." : "");
$prefix = ($database->get_driver_name() == DatabaseDriver::SQLITE ? "bans." : "");
$bans = $this->get_active_bans();