Skip to content

Commit 866e6f1

Browse files
authored
Backport 5.x fix (#43445)
1 parent 1e84e51 commit 866e6f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/system/privacyconsent/src/Extension/PrivacyConsent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ private function getPrivacyItemId()
435435

436436
if ($itemId > 0 && Associations::isEnabled()) {
437437
$privacyAssociated = Associations::getAssociations('com_menus', '#__menu', 'com_menus.item', $itemId, 'id', '', '');
438-
$currentLang = $this->getApplication()->getTag();
438+
$currentLang = $this->getApplication()->getLanguage()->getTag();
439439

440440
if (isset($privacyAssociated[$currentLang])) {
441441
$itemId = $privacyAssociated[$currentLang]->id;

0 commit comments

Comments
 (0)