<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.3 |
+ | CiviCRM version 4.5 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013 |
+ | Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
*
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2013
+ * @copyright CiviCRM LLC (c) 2004-2014
* $Id$
*
*/
*
* @params array $params associated array of civicrm variables
*
+ * @param $params
+ *
* @return null
* @static
*/
*
* @params array $params associated array of civicrm variables
*
+ * @param $params
+ *
* @return null
* @static
*/
*
* @params array $params associated array of civicrm variables
*
+ * @param $params
+ *
* @return null
* @static
*/
}
}
- // 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);
global $dbLocale;
// try to inherit the language from the hosting CMS
- if (CRM_Utils_Array::value('inheritLocale', $defaults)) {
+ if (!empty($defaults['inheritLocale'])) {
// FIXME: On multilanguage installs, CRM_Utils_System::getUFLocale() in many cases returns nothing if $dbLocale is not set
$dbLocale = $multiLang ? "_{$defaults['lcMessages']}" : '';
$lcMessages = CRM_Utils_System::getUFLocale();