Skip to content

Dashboard: use existing instance properties in ilDashboardGUI#11670

Closed
iszmais wants to merge 1 commit into
ILIAS-eLearning:release_9from
iszmais:refactor/dashboard-gui-cleanup
Closed

Dashboard: use existing instance properties in ilDashboardGUI#11670
iszmais wants to merge 1 commit into
ILIAS-eLearning:release_9from
iszmais:refactor/dashboard-gui-cleanup

Conversation

@iszmais

@iszmais iszmais commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Replace redundant $DIC lookups in the anonymous-user guard with already initialized $tpl and $this->ctrl
  • Use $this->user instead of $GLOBALS['DIC']->user() in jumpToMemberships() and jumpToSelectedItems()
  • Remove an unnecessary blank line in getMainContent()

Test plan

  • Open the dashboard as a logged-in user and verify it loads normally
  • Verify jumpToMemberships and jumpToSelectedItems still scroll to the correct dashboard blocks
  • Verify anonymous users are still redirected to the login page

Replace redundant DIC/global lookups with already initialized $tpl, $this->ctrl and $this->user.

Co-authored-by: Cursor <cursoragent@cursor.com>
@iszmais

iszmais commented Jun 12, 2026

Copy link
Copy Markdown
Contributor Author

This was a test PR created via KI.

@iszmais iszmais closed this Jun 12, 2026
@iszmais iszmais deleted the refactor/dashboard-gui-cleanup branch June 12, 2026 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant