Review main Merged

71342[BUGFIX] Relocate menu generation in PageLayoutController

Oli Bartsch CR +2 V +2 Easy +6 −11 updated 09/30/21, 03:51

Commit message

Since #92460, the PageLayoutController has to deal
with the special "ALL languages" option. Therefore,
a couple of checks are performed in menuConfig()
to determine whether the special language should
be applied to the menu or not.

It's therefore necessary to move the actual menu
generation after this determination.

This patch also removes a duplicated call to the
makeLanguageMenu() method.

Additionally, the special language is only
added to the language menu, in case at least
one translation of the current page exists.
Previously, the "available" languages were
checked. This makes no sense, since they
might be available, but not yet used.

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 2

Files 1