diff --git a/lib/cron_init.php b/lib/cron_init.php index 08eb35c9..ab0f3945 100644 --- a/lib/cron_init.php +++ b/lib/cron_init.php @@ -128,18 +128,6 @@ try { fwrite($debugHandler, 'Database-connection established' . "\n"); -// TODO remove when fully migrated to new Settings class -$result_stmt = Database::query(" - SELECT `settingid`, `settinggroup`, `varname`, `value` - FROM `" . TABLE_PANEL_SETTINGS . "` -"); -while ($row = $result_stmt->fetch(PDO::FETCH_ASSOC)) { - $settings[$row['settinggroup']][$row['varname']] = $row['value']; -} - -unset($row); -fwrite($debugHandler, 'Froxlor settings have been loaded from the database' . "\n"); - /** * if using fcgid or fpm for froxlor-vhost itself, we have to check * whether the permission of the files are still correct diff --git a/lib/init.php b/lib/init.php index 74124bd2..26f95d41 100644 --- a/lib/init.php +++ b/lib/init.php @@ -144,13 +144,6 @@ if (get_magic_quotes_gpc()) { unset($in); } -/** - * Selects settings from MySQL-Table - * TODO remove when completely migrated to new Settings class - */ -$settings_data = loadConfigArrayDir('actions/admin/settings/'); -$settings = loadSettings($settings_data); - /** * SESSION MANAGEMENT */