diff --git a/core/modules/taxonomy/taxonomy.install b/core/modules/taxonomy/taxonomy.install index efe43ee..ba81052 100644 --- a/core/modules/taxonomy/taxonomy.install +++ b/core/modules/taxonomy/taxonomy.install @@ -10,8 +10,9 @@ */ function taxonomy_uninstall() { // Remove variables. - config()->delete('taxonomy_override_selector'); - config()->delete('taxonomy_terms_per_page_admin'); + $config = config('taxonomy'); + $config->delete('taxonomy_override_selector'); + $config->delete('taxonomy_terms_per_page_admin'); // Remove taxonomy_term bundles. $vocabularies = db_query("SELECT machine_name FROM {taxonomy_vocabulary}")->fetchCol(); foreach ($vocabularies as $vocabulary) {