Closed indigoxela closed 4 years ago
While I'm starting to dig deeper into module code, I found a weird call of language_list():
https://github.com/backdrop-contrib/i18n/blob/f0c5c7e3a42e9367bcd1554c55c04b235d878e67/i18n.module#L249 return language_list($field, I18N_LANGUAGE_EXTENDED & $mode); This won't work as expected, because the function returns objects, leading to php errors later on.
return language_list($field, I18N_LANGUAGE_EXTENDED & $mode);
https://api.backdropcms.org/api/backdrop/core%21includes%21bootstrap.inc/function/language_list/1
I found at least one change record: https://api.backdropcms.org/change-records/languagelist-now-takes-second-parameter-return-array-strings
Ah, wait, that's the right change record: https://api.backdropcms.org/change-records/languagelist-simplified-localelanguagelist-removed
Function i18n_language_list() has to be adapted accordingly.
Has been fixed via https://github.com/backdrop-contrib/i18n/pull/10/commits/83ac8465b2b50ebc23a5fa3b6314eed39162be05
While I'm starting to dig deeper into module code, I found a weird call of language_list():
https://github.com/backdrop-contrib/i18n/blob/f0c5c7e3a42e9367bcd1554c55c04b235d878e67/i18n.module#L249
return language_list($field, I18N_LANGUAGE_EXTENDED & $mode);
This won't work as expected, because the function returns objects, leading to php errors later on.https://api.backdropcms.org/api/backdrop/core%21includes%21bootstrap.inc/function/language_list/1
I found at least one change record: https://api.backdropcms.org/change-records/languagelist-now-takes-second-parameter-return-array-strings