aboutsummaryrefslogtreecommitdiff
path: root/ratatoeskr/setup
diff options
context:
space:
mode:
authorLaria Carolin Chabowski <laria@laria.me>2020-11-08 21:44:32 +0100
committerLaria Carolin Chabowski <laria@laria.me>2020-11-08 21:44:32 +0100
commitf142efd4f77c018b2a0a2530a4601920dc7fdcba (patch)
tree9ad670e7a91e2afd3ca49d643302d1c58a08ddf0 /ratatoeskr/setup
parentb8903396199c3437cf980d93c94159a00899a10d (diff)
downloadratatoeskr-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/setup')
-rw-r--r--ratatoeskr/setup/create_tables.php2
-rw-r--r--ratatoeskr/setup/setup.php1
2 files changed, 0 insertions, 3 deletions
diff --git a/ratatoeskr/setup/create_tables.php b/ratatoeskr/setup/create_tables.php
index e16647c..296091e 100644
--- a/ratatoeskr/setup/create_tables.php
+++ b/ratatoeskr/setup/create_tables.php
@@ -7,8 +7,6 @@ if (!defined("SETUP")) {
die();
}
-require_once(dirname(__FILE__) . "/../sys/db.php");
-
function create_mysql_tables(?Database $db = null): void
{
$sql_tables = <<<SQL
diff --git a/ratatoeskr/setup/setup.php b/ratatoeskr/setup/setup.php
index 7fc4bb7..c9f8398 100644
--- a/ratatoeskr/setup/setup.php
+++ b/ratatoeskr/setup/setup.php
@@ -8,7 +8,6 @@ define("SETUP", true);
require_once(dirname(__FILE__) . "/../vendor/autoload.php");
require_once(dirname(__FILE__) . "/../sys/init_ste.php");
require_once(dirname(__FILE__) . "/../sys/translation.php");
-require_once(dirname(__FILE__) . "/../sys/db.php");
require_once(dirname(__FILE__) . "/../languages.php");
require_once(dirname(__FILE__) . "/create_tables.php");