diff --git a/administrator/components/com_languages/models/overrides.php b/administrator/components/com_languages/models/overrides.php index 0b60d97e39f0a..0849461230a13 100644 --- a/administrator/components/com_languages/models/overrides.php +++ b/administrator/components/com_languages/models/overrides.php @@ -60,6 +60,12 @@ public function getOverrides($all = false) $filename = constant('JPATH_' . $client) . '/language/overrides/' . $this->getState('filter.language') . '.override.ini'; $strings = LanguagesHelper::parseFile($filename); + // Delete the override.ini file if empty + if (file_exists($filename) && empty($strings)) + { + JFile::delete($filename); + } + // Filter the loaded strings according to the search box $search = $this->getState('filter.search');