CRM_Core_Config - Expose userFrameworkVersion, replyTo, versionCheck, initialized
authorTim Otten <totten@civicrm.org>
Thu, 17 Sep 2015 01:50:57 +0000 (18:50 -0700)
committerTim Otten <totten@civicrm.org>
Thu, 17 Sep 2015 22:49:33 +0000 (15:49 -0700)
The first three were migrated to settings; although core no longer accesses them on $config,
we may need to migrate them, and it doesn't hurt to provide them for backward-compatibility.

Initialized was a just a bug.

CRM/Core/Config/MagicMerge.php
CRM/Core/Config/Runtime.php

index 46ff1ec1526c505758a41a9fd7e6eb54d590f267..1f43b5c4c2d2fb8cce90b67c0e26b45aba5fc52e 100644 (file)
@@ -123,12 +123,14 @@ class CRM_Core_Config_MagicMerge {
       'recaptchaOptions' => array('setting'),
       'recaptchaPublicKey' => array('setting'),
       'recaptchaPrivateKey' => array('setting'),
+      'replyTo' => array('setting'),
       'secondDegRelPermissions' => array('setting'),
       'smartGroupCacheTimeout' => array('setting'),
       'timeInputFormat' => array('setting'),
       'userFrameworkLogging' => array('setting'),
       'userFrameworkUsersTableName' => array('setting'),
       'verpSeparator' => array('setting'),
+      'versionCheck' => array('setting'),
       'wkhtmltopdfPath' => array('setting'),
       'wpBasePage' => array('setting'),
       'wpLoadPhp' => array('setting'),
@@ -136,15 +138,16 @@ class CRM_Core_Config_MagicMerge {
       'doNotResetCache' => array('local'),
       'inCiviCRM' => array('local'),
       'userFrameworkFrontend' => array('local'),
-      'initialized' => array('local'),
 
       'dsn' => array('runtime'),
+      'initialized' => array('runtime'),
       'userFramework' => array('runtime'),
       'userFrameworkBaseURL' => array('runtime'),
       'userFrameworkClass' => array('runtime'),
       'userFrameworkDSN' => array('runtime'),
       'useFrameworkRelativeBase' => array('runtime', 'useFrameworkRelativeBase'),
       'userFrameworkURLVar' => array('runtime'),
+      'userFrameworkVersion' => array('runtime'),
       'userPermissionClass' => array('runtime'),
       'userPermissionTemp' => array('runtime'),
       'userSystem' => array('runtime'),
index 46c16ae289ff5ae018a054edc89a472cab4e280f..95f4810d7235da242aa41f663bf54a89af6af3b1 100644 (file)
@@ -61,6 +61,8 @@ class CRM_Core_Config_Runtime {
    */
   public $userFrameworkURLVar = 'q';
 
+  public $userFrameworkVersion;
+
   public $useFrameworkRelativeBase;
 
   public $userHookClass;
@@ -177,6 +179,8 @@ class CRM_Core_Config_Runtime {
       $this->userFrameworkDSN = CIVICRM_UF_DSN;
     }
 
+    $this->userFrameworkVersion = $this->userSystem->getVersion();
+
     // this is dynamically figured out in the civicrm.settings.php file
     if (defined('CIVICRM_CLEANURL')) {
       $this->cleanURL = CIVICRM_CLEANURL;