Index: lib/classes/plugininfo/theme.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- lib/classes/plugininfo/theme.php (date 1402941866000) +++ lib/classes/plugininfo/theme.php (revision ) @@ -63,9 +63,25 @@ $DB->set_field('user', 'theme', '', array('theme'=>$this->name)); $DB->set_field('mnet_host', 'theme', '', array('theme'=>$this->name)); + if (get_config('core', 'thememobile') === $this->name) { - unset_config('thememobile'); + unset_config('thememobile'); + } + if (get_config('core', 'themetablet') === $this->name) { - unset_config('themetablet'); + unset_config('themetablet'); + } + if (get_config('core', 'themelegacy') === $this->name) { - unset_config('themelegacy'); + unset_config('themelegacy'); + } + + $themelist = get_config('core', 'themelist'); + if (!empty($themelist)) { + $themes = explode(',', $themelist); + $key = array_search($this->name, $themes); + if ($key !== false) { + unset($themes[$key]); + set_config('themelist', implode(',', $themes)); + } + } parent::uninstall_cleanup(); }