Skip to content

News 48342: Remove Unused News Block Helpers - #12091

Open
matheuszych wants to merge 1 commit into
ILIAS-eLearning:release_10from
matheuszych:nw/48342
Open

matheuszych wants to merge 1 commit into
ILIAS-eLearning:release_10from
matheuszych:nw/48342

Conversation

@matheuszych

Copy link
Copy Markdown
Contributor

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

The methods ilNewsItemGUI::getHTML() and getNewsForContextBlock() were unreachable dead code. News block rendering is handled by ilNewsForContextBlockGUI, and the news overview uses getNewsForContextTable(). The language variable
news_block_news_for_context was only referenced by the removed code and has been deleted from all language files.

/cc @thojou

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

The methods `ilNewsItemGUI::getHTML()` and `getNewsForContextBlock()`
were unreachable dead code. News block rendering is handled by
`ilNewsForContextBlockGUI`, and the news overview uses
`getNewsForContextTable()`. The language variable
`news_block_news_for_context` was only referenced by the removed code
and has been deleted from all language files.
@dsstrassner dsstrassner added bugfix php Pull requests that update Php code translations Pull requests that propose changes to ILIAS language files. labels Sep 18, 2026
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 translations Pull requests that propose changes to ILIAS language files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants