/** * * Fixes database problems */ public function fix() { $changeSet = $this->getItems(); $changeSet->fix(); $this->fixSchemaVersion($changeSet); $this->fixUpdateVersion(); $installer = new joomlaInstallerScript(); $installer->deleteUnexistingFiles(); $this->fixDefaultTextFilters(); }
/** * Entry point for CLI script * * @return void * * @since 3.0 */ public function doExecute() { // Import the dependencies jimport('joomla.filesystem.file'); jimport('joomla.filesystem.folder'); // We need the update script JLoader::register('joomlaInstallerScript', JPATH_ADMINISTRATOR . '/components/com_admin/script.php'); // Instantiate the class $class = new joomlaInstallerScript(); // Run the delete method $class->deleteUnexistingFiles(); }