diff options
author | Laria Carolin Chabowski <laria@laria.me> | 2020-11-08 21:44:32 +0100 |
---|---|---|
committer | Laria Carolin Chabowski <laria@laria.me> | 2020-11-08 21:44:32 +0100 |
commit | f142efd4f77c018b2a0a2530a4601920dc7fdcba (patch) | |
tree | 9ad670e7a91e2afd3ca49d643302d1c58a08ddf0 /ratatoeskr/sys | |
parent | b8903396199c3437cf980d93c94159a00899a10d (diff) | |
download | ratatoeskr-cms-f142efd4f77c018b2a0a2530a4601920dc7fdcba.tar.gz ratatoeskr-cms-f142efd4f77c018b2a0a2530a4601920dc7fdcba.tar.bz2 ratatoeskr-cms-f142efd4f77c018b2a0a2530a4601920dc7fdcba.zip |
Get rid of db.php and include config directly in entry points
Diffstat (limited to 'ratatoeskr/sys')
-rw-r--r-- | ratatoeskr/sys/db.php | 15 | ||||
-rw-r--r-- | ratatoeskr/sys/models.php | 1 | ||||
-rw-r--r-- | ratatoeskr/sys/plugin_api.php | 1 |
3 files changed, 1 insertions, 16 deletions
diff --git a/ratatoeskr/sys/db.php b/ratatoeskr/sys/db.php deleted file mode 100644 index 4d1f493..0000000 --- a/ratatoeskr/sys/db.php +++ /dev/null @@ -1,15 +0,0 @@ -<?php -/* - * File: ratatoeskr/sys/db.php - * - * Helper functions for dealing with MySQL. - * - * License: - * This file is part of Ratatöskr. - * Ratatöskr is licensed unter the MIT / X11 License. - * See "ratatoeskr/licenses/ratatoeskr" for more information. - */ - -if (!defined("SETUP")) { - require_once(dirname(__FILE__) . "/../config.php"); -} diff --git a/ratatoeskr/sys/models.php b/ratatoeskr/sys/models.php index 3edb1d6..0716690 100644 --- a/ratatoeskr/sys/models.php +++ b/ratatoeskr/sys/models.php @@ -15,7 +15,6 @@ use r7r\cms\sys\models\KVStorage; use r7r\cms\sys\Database; use r7r\cms\sys\DbTransaction; -require_once(dirname(__FILE__) . "/db.php"); require_once(dirname(__FILE__) . "/textprocessors.php"); require_once(dirname(__FILE__) . "/pluginpackage.php"); diff --git a/ratatoeskr/sys/plugin_api.php b/ratatoeskr/sys/plugin_api.php index 082b605..1920032 100644 --- a/ratatoeskr/sys/plugin_api.php +++ b/ratatoeskr/sys/plugin_api.php @@ -13,6 +13,7 @@ use r7r\ste\STECore; use r7r\cms\sys\Env; use r7r\cms\sys\textprocessors\LegacyTextprocessor; +require_once(dirname(__FILE__) . "/../config.php"); require_once(dirname(__FILE__) . "/models.php"); require_once(dirname(__FILE__) . "/textprocessors.php"); require_once(dirname(__FILE__) . "/../frontend.php"); |