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

796 fix moodle 42 fatal with core external lib changes #803

Open
wants to merge 5 commits into
base: MOODLE_35_STABLE
Choose a base branch
from

Conversation

keevan
Copy link
Contributor

@keevan keevan commented Jul 5, 2023

  • no longer using externallib.php
  • fix: add backwards compatibility layer for external_lib usage under Moodle 4.2

Added some code on top of the changes on top of the one PR started here by @opitz, with changes suggested by @aspark21 . The approach is here is to prevent branching due to a core file move.. where the API of the functions themselves do not change, only their namespace.

Costs of this approach, + one level of abstraction, IDEs don't have great support for this and won't pick up class methods/defs as easily

Benefits: We don't have to branch yet, I suspect support for pre 4.2 to still be round for some time.

@keevan keevan force-pushed the 796-fix-moodle-42-fatal-with-core-external-lib-changes branch from 86759b7 to 2769e43 Compare July 5, 2023 04:42
version.php Outdated Show resolved Hide resolved
@keevan keevan force-pushed the 796-fix-moodle-42-fatal-with-core-external-lib-changes branch from 6860e59 to dae3455 Compare July 5, 2023 05:12
@keevan keevan force-pushed the 796-fix-moodle-42-fatal-with-core-external-lib-changes branch from fb1165b to cd3f78f Compare July 14, 2023 00:52
@keevan keevan force-pushed the 796-fix-moodle-42-fatal-with-core-external-lib-changes branch from 3276585 to 2144d96 Compare July 14, 2023 03:24
@Peterburnett
Copy link
Contributor

image

Just a small CI blocker then this should be good

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