Skip to content

Commit e61c709

Browse files
committed
fix!: Fix the component_iri error to ensure that languages work correctly. Removes DEDALO_DATA_NOLAN forced language on construct that unable to perform transliterations.
1 parent b57bfe3 commit e61c709

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

core/component_iri/class.component_iri.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ class component_iri extends component_common {
4040
*/
4141
protected function __construct( string $tipo, mixed $section_id=null, string $mode='list', string $lang=DEDALO_DATA_NOLAN, ?string $section_tipo=null, bool $cache=true ) {
4242

43-
// lang. Force always DEDALO_DATA_NOLAN
44-
$lang = DEDALO_DATA_NOLAN;
43+
// (!) lang. Uses default lang DEDALO_DATA_NOLAN because is not translatable,
44+
// BUT, allow another languages for transliteration (with_lang_versions = true)
4545

4646
// Fix with_lang_versions for clarity
4747
$this->with_lang_versions = true;

0 commit comments

Comments
 (0)