aboutsummaryrefslogtreecommitdiff
path: root/ratatoeskr/sys/db.php
diff options
context:
space:
mode:
authorLaria Carolin Chabowski <laria@laria.me>2020-11-08 17:26:27 +0100
committerLaria Carolin Chabowski <laria@laria.me>2020-11-08 17:30:17 +0100
commitba3ee3e41cdaf591f9cb1aeb1f6ff5aa83285d1d (patch)
treea26db25e93d76ab6f92bd90d352d63c8ec38eb9e /ratatoeskr/sys/db.php
parentdfa766f738959f0e857c26e7b8336e76db493c73 (diff)
downloadratatoeskr-cms-ba3ee3e41cdaf591f9cb1aeb1f6ff5aa83285d1d.tar.gz
ratatoeskr-cms-ba3ee3e41cdaf591f9cb1aeb1f6ff5aa83285d1d.tar.bz2
ratatoeskr-cms-ba3ee3e41cdaf591f9cb1aeb1f6ff5aa83285d1d.zip
Remove last qdb() usage! \(^.^)/
Diffstat (limited to 'ratatoeskr/sys/db.php')
-rw-r--r--ratatoeskr/sys/db.php20
1 files changed, 0 insertions, 20 deletions
diff --git a/ratatoeskr/sys/db.php b/ratatoeskr/sys/db.php
index 9efa9ec..b4f2efb 100644
--- a/ratatoeskr/sys/db.php
+++ b/ratatoeskr/sys/db.php
@@ -10,28 +10,8 @@
* See "ratatoeskr/licenses/ratatoeskr" for more information.
*/
-use r7r\cms\sys\Database;
-use r7r\cms\sys\Env;
-
if (!defined("SETUP")) {
require_once(dirname(__FILE__) . "/../config.php");
}
require_once(dirname(__FILE__) . "/utils.php");
-
-/**
- * Prepares statement (1st argument) like {@see Database::prepStmt()} and executes it with the remaining arguments.
- *
- * @param mixed ...$args
- * @return PDOStatement
- *
- * @deprecated Use {@see Database::query()} instead.
- */
-function qdb(...$args): PDOStatement
-{
- if (count($args) < 1) {
- throw new InvalidArgumentException("qdb needs at least 1 argument");
- }
-
- return Env::getGlobal()->database()->query((string)$args[0], ...array_slice($args, 1));
-}