| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
* Perform an upgrade without using the web-frontend
*
* @param bool $enablePrint
*
- * @throws
* @throws Exception
* @return array, with keys:
* - message: string, HTML-ish blob
$postUpgradeMessageFile = CRM_Utils_File::tempnam('civicrm-post-upgrade');
$queueRunner = new CRM_Queue_Runner(array(
- 'title' => ts('CiviCRM Upgrade Tasks'),
- 'queue' => CRM_Upgrade_Form::buildQueue($currentVer, $latestVer, $postUpgradeMessageFile),
- ));
+ 'title' => ts('CiviCRM Upgrade Tasks'),
+ 'queue' => CRM_Upgrade_Form::buildQueue($currentVer, $latestVer, $postUpgradeMessageFile),
+ ));
$queueResult = $queueRunner->runAll();
if ($queueResult !== TRUE) {
$errorMessage = CRM_Core_Error::formatTextException($queueResult['exception']);
'message' => file_get_contents($postUpgradeMessageFile),
);
}
+
}