Remove specific code for upgrade from 2.0 to 2.1
authorSamuel Vanhove <samuel@koumbit.org>
Mon, 22 Jul 2013 20:16:30 +0000 (16:16 -0400)
committerSamuel Vanhove <samuel@koumbit.org>
Mon, 22 Jul 2013 20:16:30 +0000 (16:16 -0400)
CRM/Core/BAO/ConfigSetting.php

index 7864add6b3ce532976c817788f18348bfc036d25..2929a53893a4b5eb50c33be379d6f773a4db1d1b 100644 (file)
@@ -236,16 +236,6 @@ class CRM_Core_BAO_ConfigSetting {
         }
       }
 
-      // since language field won't be present before upgrade.
-      if (CRM_Core_Config::isUpgradeMode()) {
-        // dont add if its empty
-        if (!empty($defaults)) {
-          // retrieve directory and url preferences also
-          CRM_Core_BAO_Setting::retrieveDirectoryAndURLPreferences($defaults);
-        }
-        return;
-      }
-
       // check if there are any locale strings
       if ($domain->locale_custom_strings) {
         $defaults['localeCustomStrings'] = unserialize($domain->locale_custom_strings);