Skip to content

Commit

Permalink
Init: Fix login url in startup metabar provider
Browse files Browse the repository at this point in the history
See: https://mantis.ilias.de/view.php?id=42681
(cherry picked from commit eb9e67c)
(cherry picked from commit 70efa38)
  • Loading branch information
mjansenDatabay committed Nov 13, 2024
1 parent 7d6b1cf commit 4804e0f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Services/Init/classes/Provider/StartUpMetaBarProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,15 @@ public function getMetaBarItems(): array
}

$login_glyph = $factory->symbol()->glyph()->login();

$current_language = $this->dic->user()->getCurrentLanguage() ?: $this->dic->language()->getLangKey();

$login = $this->meta_bar
->topLinkItem($if('login'))
->withAction(
'login.php?' . $target_str . 'client_id=' . rawurlencode(
CLIENT_ID
) . '&cmd=force_login&lang=' . $this->dic->user()->getCurrentLanguage()
) . '&cmd=force_login&lang=' . $current_language
)
->withSymbol($login_glyph)
->withPosition(2)
Expand Down

0 comments on commit 4804e0f

Please sign in to comment.