Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3 Migrate output callbacks to hooks #4

Merged
merged 2 commits into from
Jul 13, 2024
Merged

Conversation

leonstr
Copy link
Contributor

@leonstr leonstr commented Jul 4, 2024

Migrate before_standard_top_of_body_html() to a hook for Moodle 4.4 (see MDL-81144).

Proposed fix for issue #3 . For this the plugin would require Moodle 4.4 or later.

Migrate before_standard_top_of_body_html() to a hook for Moodle 4.4
(see MDL-81144).
@aydevworks aydevworks self-requested a review July 4, 2024 11:21
Copy link
Collaborator

@aydevworks aydevworks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the code is fine, just a few warnings in the GHA results. @leonstr Could you please have a look? Thanks!
e.g. https://github.com/ucl-isd/moodle-local_examguard/actions/runs/9791801971/job/27041378745

//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like missing defined('MOODLE_INTERNAL') || die();

@leonstr
Copy link
Contributor Author

leonstr commented Jul 4, 2024

@aydevworks Thanks for the feedback, I've added fixes for these warnings. Can you squash this into the original commit? Or let me know if you want me to submit a new PR.

@aspark21
Copy link
Collaborator

aspark21 commented Jul 4, 2024

Don’t worry about it, I’ll squash when merging once we finalise 4.4 being prod ready

@aspark21 aspark21 merged commit b4c6826 into ucl-isd:main Jul 13, 2024
5 checks passed
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.

3 participants