start cleaning of main class

This commit is contained in:
Jean-Christian Denis 2021-09-19 15:31:57 +02:00
parent 47257641d8
commit bdb4b6d865
Signed by: JcDenis
GPG key ID: 1B5B8C5B90B6C951
2 changed files with 379 additions and 242 deletions

View file

@ -55,7 +55,7 @@ if (!empty($_POST['save'])) {
throw new Exception('You must choose one file format at least'); throw new Exception('You must choose one file format at least');
} }
foreach($translater->getDefaultSettings() as $k => $v) { foreach($translater->getDefaultSettings() as $k => $v) {
$translater->set($k, (isset($_POST['translater_' . $k]) ? $_POST['translater_' . $k] : '')); $translater->setSetting($k, (isset($_POST['translater_' . $k]) ? $_POST['translater_' . $k] : ''));
} }
foreach($translater->proposal->getTools() AS $k => $v) { foreach($translater->proposal->getTools() AS $k => $v) {
$v->save(); $v->save();

File diff suppressed because it is too large Load diff