Project

General

Profile

Actions

Bug #9118

closed

[J4] Joomla language API no longer properly returning loaded language

Added by krileon almost 2 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
High
Assignee:
Target version:
Start date:
27 January 2023
Due date:
% Done:

100%

Estimated time:

Description

JFactory::getApplication()->getLanguage()->getTag() is not returning the loaded language switched to using language switcher. It is always returning the default site language. This was never the case on Joomla 3 and previous Joomla releases. Appears to be a regression bug or change of API without warning.

Actions #1

Updated by krileon almost 2 years ago

Caused by CB being loaded before Joomla's language is set. In my test case this was Kunena's CB integration.

Actions #2

Updated by krileon almost 2 years ago

  • Status changed from Assigned to Resolved
  • % Done changed from 0 to 100

Fixed in MR !1859

Actions #3

Updated by beat over 1 year ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF