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

Use moodle_url to generate links in wiki history page #73

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

aolley
Copy link
Contributor

@aolley aolley commented Sep 20, 2017

In M3.4+, MDL-59388 has changed how the link_arrow_[left|right]
functions render URLs. If it's passed a plain url with pre-escaped
ampersands in it, these now get double escaped.

To remedy this, proper moodle_url objects should be used for handling
the printing of urls. This change updates the links used in the
wikihistory page to use that API for all its urls.

This way the code change is compatible with earlier versions of Moodle
as well as 3.4+.

There is no functional change for the end user.

In M3.4+, MDL-59388 has changed how the link_arrow_[left|right]
functions render URLs. If it's passed a plain url with pre-escaped
ampersands in it, these now get double escaped.

To remedy this, proper moodle_url objects should be used for handling
the printing of urls. This change updates the links used in the
wikihistory page to use that API for all its urls.

This way the code change is compatible with earlier versions of Moodle
as well as 3.4+.

There is no functional change for the end user.
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