<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.6 |
+ | CiviCRM version 4.7 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2014 |
+ | Copyright CiviCRM LLC (c) 2004-2015 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
* Serves as a wrapper between the UserFrameWork and Core CRM
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2014
+ * @copyright CiviCRM LLC (c) 2004-2015
* $Id$
*
*/
}
else {
$template->assign('urlIsPublic', FALSE);
- self::versionCheck($template);
+ self::statusCheck($template);
}
if (isset($item['return_url'])) {
}
/**
- * Show the message about CiviCRM versions.
+ * Show status in the footer
*
* @param CRM_Core_Smarty $template
*/
- public static function versionCheck($template) {
+ public static function statusCheck($template) {
if (CRM_Core_Config::isUpgradeMode()) {
return;
}
- $newerVersion = $securityUpdate = NULL;
- if (CRM_Core_BAO_Setting::getItem(CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME, 'versionAlert', NULL, 1) & 1) {
- $newerVersion = CRM_Utils_VersionCheck::singleton()->isNewerVersionAvailable();
- }
- if (CRM_Core_BAO_Setting::getItem(CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME, 'securityUpdateAlert', NULL, 3) & 1) {
- $securityUpdate = CRM_Utils_VersionCheck::singleton()->isSecurityUpdateAvailable();
- }
- $template->assign('newer_civicrm_version', $newerVersion);
- $template->assign('security_update', $securityUpdate);
+ $statusSeverity = 0;
+ $statusMessage = ts('System status OK');
+ // TODO: get status from CRM_Utils_Check, if cached
+ $template->assign('footer_status_severity', $statusSeverity);
+ $template->assign('footer_status_message', $statusMessage);
}
/**
// rebuild word replacement cache - pass false to prevent operations redundant with this fn
CRM_Core_BAO_WordReplacement::rebuild(FALSE);
- CRM_Core_BAO_Setting::updateSettingsFromMetaData();
+ Civi::service('settings_manager')->flush();
// Clear js caches
CRM_Core_Resources::singleton()->flushStrings()->resetCacheCode();
CRM_Case_XMLRepository::singleton(TRUE);
}
CRM_Core_DAO_AllCoreTables::reinitializeCache(TRUE);
CRM_Core_ManagedEntities::singleton(TRUE)->reconcile();
+
+ //CRM-16257 update Config.IDS.ini might be an old copy
+ CRM_Core_IDS::createConfigFile(TRUE);
}
}