Exemplo n.º 1
0
 /**
  * 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');
 }