Skip to content

Add iconurl icon display on login page#3191

Open
theqoocjil wants to merge 1 commit into
microsoft:masterfrom
theqoocjil:fix/iconurl_error
Open

Add iconurl icon display on login page#3191
theqoocjil wants to merge 1 commit into
microsoft:masterfrom
theqoocjil:fix/iconurl_error

Conversation

@theqoocjil

Copy link
Copy Markdown
Contributor

@weilai-irl
a mistake was made during the last PR #3123 . You cannot remove the iconurl key, otherwise the error "Warning: Undefined array key "iconurl" in / appearsvar/www/moodle/lib/authlib.php on line 759", because the icon is mandatory in terms of keys. btw, I want to work on PR for the moodle core to fix this misunderstanding.

@weilai-irl weilai-irl self-assigned this Jun 4, 2026
@weilai-irl weilai-irl added this to the 2026-03 milestone Jun 4, 2026
@weilai-irl

Copy link
Copy Markdown
Collaborator

Hi @theqoocjil

Thank you for reporting this. I acknowledge the issue. My original plan was to merge the fix in your PR, however, when reviewing the issue more carefully, I realised that the proper fix is to populate iconurl with a real URL when $showicon is true, since that's what the login UI renders from.

I have implemented the solution in PRs #3212 #3213 #3214 #3215 for the supported Moodle versions. They will be included in the next release.

Regards,
Lai

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.

2 participants