/** * This is executing the update table commands to adjust tables to the latest layout * @author Max Milbers */ function updateDatabase() { vRequest::vmCheckToken(); if (!class_exists('com_tsmartInstallerScript')) { require VMPATH_ADMIN . DS . 'install' . DS . 'script.tsmart.php'; } $updater = new com_tsmartInstallerScript(); $updater->update(false); $this->setRedirect($this->redirectPath, 'Database updated'); }
/** * Legacy j1.5 function to use the 1.6 class uninstall * * @return boolean True on success * @deprecated */ function com_uninstall() { $vmInstall = new com_tsmartInstallerScript(); // $vmInstall->preflight('uninstall'); if (version_compare(JVERSION, '1.6.0', 'ge')) { // Joomla! 1.6 code here } else { $vmInstall->uninstall(); $vmInstall->postflight('uninstall'); } return true; }