From cfad740c9916132dced9f46826313da6f7b7dd1d Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 15 Feb 2021 16:38:18 +0300 Subject: [PATCH] drop legacy db_ functions wrapper --- include/db.php | 38 -------------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 include/db.php diff --git a/include/db.php b/include/db.php deleted file mode 100644 index c02e90ef2..000000000 --- a/include/db.php +++ /dev/null @@ -1,38 +0,0 @@ -escape_string($s, $strip_tags); -} - -function db_query($query, $die_on_error = true) { - return Db::get()->query($query, $die_on_error); -} - -function db_fetch_assoc($result) { - return Db::get()->fetch_assoc($result); -} - - -function db_num_rows($result) { - return Db::get()->num_rows($result); -} - -function db_fetch_result($result, $row, $param) { - return Db::get()->fetch_result($result, $row, $param); -} - -function db_affected_rows($result) { - return Db::get()->affected_rows($result); -} - -function db_last_error() { - return Db::get()->last_error(); -} - -function db_last_query_error() { - return Db::get()->last_query_error(); -} - -function db_quote($str){ - return Db::get()->quote($str); -}