public function updateScriptVersion() { $version = $this->getInstalledVersion(); // Update the version in the database to the latest now $config = FD::table('Config'); $exists = $config->load(array('type' => 'scriptversion')); $config->type = 'scriptversion'; $config->value = $version; $config->store(); $result = $this->getResultObj(JText::_('COM_EASYSOCIAL_INSTALLATION_MAINTENANCE_UPDATED_MAINTENANCE_VERSION'), 1, JText::_('COM_EASYSOCIAL_INSTALLATION_STEP_SUCCESS')); // Purge all old version files ES::purgeOldVersionScripts(); // Purge javascript resources FD::purgeJavascriptResources(); // Remove installation temporary file JFile::delete(JPATH_ROOT . '/tmp/easysocial.installation'); return $this->output($result); }