コード例 #1
0
 /**
  * Checks if an update is needed.
  *
  * @param 	string		&$description: The description for the update
  * @return 	boolean		TRUE if an update is needed, FALSE otherwise
  */
 public function checkForUpdate(&$description)
 {
     $description = 'Migrate all filemounts to be based on file abstraction layer storages.';
     $filemountCount = $this->db->exec_SELECTcountRows('*', 'sys_filemounts', 'base IN (0,1) ' . \TYPO3\CMS\Backend\Utility\BackendUtility::deleteClause('sys_filemounts'));
     return $filemountCount > 0 && !$this->isWizardDone();
 }