Moodle: messages() causes fatal php error when used

Description

messages() in framework.php now returns an array of objects with {code, message}. Before it returned an array of messages(strings).
This change needs to be reflected in all the places where this function is used. Now it causes a fatal php error whenever it is called as it expects the resulting objects in the array to be strings.
This can be reproduced for instance by uploading an H5P that causes an error message when the hub is disabled.

Environment

None

Acceptance Criteria

  • All usages of messages() must be updated to reflect the new change in the function.

Status

Assignee

Thomas Marstrander

Reporter

Thomas Marstrander

Labels

None

Funding

None

Code reviewer

Frode Petterson

Released

None

Time tracking

0m

Fix versions

Sprint

None

Priority

Medium
Configure