Skip to content
Snippets Groups Projects

Issue #2828803 - Remove config

Merged Viktor Holovachek requested to merge issue/getid3-2828803:2828803-fatal-error-when into 8.x-1.x
2 files
+ 1
15
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -60,16 +60,6 @@ class GetId3ConfigForm extends ConfigFormBase {
->addError($this->t("Your getID3 library is insecure! The demos distributed with getID3 contains code which creates a huge security hole. Remove the demos directory (%path) from beneath Drupal's directory.", ['%path' => realpath($getid3_demos_path)]));
}
}
$show_warnings = $this->config('getid3.settings')->get('getid3_show_warnings');
if (empty($show_warnings)) {
$show_warnings = FALSE;
}
$form['getid3_show_warnings'] = [
'#type' => 'checkbox',
'#title' => $this->t("Display Warnings"),
'#default_value' => $show_warnings,
'#description' => $this->t("Check this to display the warning messages from the getID3 library when reading and writing ID3 tags. Generally it's a good idea to leave this unchecked, getID3 reports warnings for several trivial problems and the warnings can be confusing to users. This setting can be useful when debugging problems with the ID3 tags."),
];
return parent::buildForm($form, $form_state);
}
@@ -82,7 +72,6 @@ class GetId3ConfigForm extends ConfigFormBase {
// Save the new value.
$this->config('getid3.settings')
->set('path', $form_state->getValue('getid3_path'))
->set('getid3_show_warnings', $form_state->getValue('getid3_show_warnings'))
->save();
}
Loading