// lets drop all the triggers here
CRM_Core_DAO::dropTriggers();
+ $this->set('isUpgradePending', TRUE);
+
// Persistent message storage across upgrade steps. TODO: Use structured message store
// Note: In clustered deployments, this file must be accessible by all web-workers.
$this->set('postUpgradeMessageFile', CRM_Utils_File::tempnam('civicrm-post-upgrade'));
$upgrade = new CRM_Upgrade_Form();
$template = CRM_Core_Smarty::singleton();
- list($currentVer, $latestVer) = $upgrade->getUpgradeVersions();
- if ($currentVer != $latestVer) {
+ // If we're redirected from queue-runner, then isUpgradePending=true.
+ // If user then reloads the finish page, the isUpgradePending will be unset. (Because the session has been cleared.)
+ if ($this->get('isUpgradePending')) {
// TODO: Use structured message store
$postUpgradeMessage = file_get_contents($this->get('postUpgradeMessageFile'));