getModel('database'); $model->fix(); // Purge updates JModelLegacy::addIncludePath(JPATH_ADMINISTRATOR . '/components/com_joomlaupdate/models', 'JoomlaupdateModel'); $updateModel = JModelLegacy::getInstance('default', 'JoomlaupdateModel'); $updateModel->purge(); // Refresh versionable assets cache JFactory::getApplication()->flushAssets(); $this->setRedirect(JRoute::_('index.php?option=com_installer&view=database', false)); } }