CRM_Core_Error::fatal($error);
}
+ $config = CRM_Core_Config::singleton();
+
// All cached content needs to be cleared because the civi codebase was just replaced
CRM_Core_Resources::singleton()->flushStrings()->resetCacheCode();
CRM_Core_Menu::store();
}
$template->assign('preUpgradeMessage', $preUpgradeMessage);
- // $template->assign( 'message', $postUpgradeMessage );
$content = $template->fetch('CRM/common/success.tpl');
echo CRM_Utils_System::theme($content, $this->_print, TRUE);
}
$config = CRM_Core_Config::singleton();
- // This could be removed in later rev
- if ($currentVer == '2.1.6') {
- // also cleanup the templates_c directory
- $config->cleanupCaches();
- }
- // end of hack
$postUpgradeMessage = '<span class="bold">' . ts('Congratulations! Your upgrade was successful! (... wasn\'t that easy!)') . '</span>';