Active
Project:
Strongarm
Version:
7.x-2.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 May 2014 at 12:01 UTC
Updated:
24 Aug 2014 at 22:48 UTC
Jump to comment: Most recent
Title says it all.
But as you can see from the code in Bootstrap, language_default should be object
/**
* Returns the default language used on the site
*
* @param $property
* Optional property of the language object to return
*/
function language_default($property = NULL) {
$language = variable_get('language_default', (object) array('language' => 'en', 'name' => 'English', 'native' => 'English', 'direction' => 0, 'enabled' => 1, 'plurals' => 0, 'formula' => '', 'domain' => '', 'prefix' => '', 'weight' => 0, 'javascript' => ''));
return $property ? $language->$property : $language;
}But Strongarm export is as follows -
$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'language_default';
$strongarm->value = array(
'language' => 'en',
'name' => 'English',
'native' => 'English',
'direction' => '0',
'enabled' => 1,
'plurals' => '0',
'formula' => '',
'domain' => '',
'prefix' => '',
'weight' => '0',
'javascript' => '',
);
$export['language_default'] = $strongarm;
Comments
Comment #1
bertrandl commentedI deleted language_default in the variable table which was set as an array...
And it's working