Skip to content

[FIX] Language: 48669: Install plugins with cli/setup.php - #12388

Merged
c-knof merged 1 commit into
ILIAS-eLearning:release_12from
kroepelin-projekte:fix/r12/ck/48669-setup-language-logger
Nov 5, 2026
Merged

c-knof merged 1 commit into
ILIAS-eLearning:release_12from
kroepelin-projekte:fix/r12/ck/48669-setup-language-logger

Conversation

@c-knof

@c-knof c-knof commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

https://mantis.ilias.de/view.php?id=48669

Since the Logging refactoring, $DIC->logger() needs logging.factory, which the $DIC built by the setup objectives lacks. ilLanguage now falls back to the NullLogger in that case, and the fake ilLoggerFactory/ilObjUser in ilPluginLanguageUpdatedObjective are adapted to the current classes.

`ilLanguage` uses the `NullLogger` when `ilLoggerFactory` or
`logging.factory` is not defined in `$DIC`, as in the setup objectives
that build their own `$DIC`.

The fake `ilLoggerFactory` in `ilPluginLanguageUpdatedObjective` drops the
dead `getRootLogger()` override. Its fake `ilObjUser` returns the language
via `getLanguage()`, as `ilObjUser` no longer has `$prefs`.
@c-knof c-knof self-assigned this Nov 5, 2026
@c-knof c-knof added bugfix php Pull requests that update Php code labels Nov 5, 2026
@c-knof
c-knof merged commit db28a08 into ILIAS-eLearning:release_12 Nov 5, 2026
2 of 6 checks passed
@c-knof
c-knof deleted the fix/r12/ck/48669-setup-language-logger branch November 5, 2026 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix php Pull requests that update Php code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant