complete migration to new Settings class, fixes #1325
Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user