moodleou / moodle-mod_ouwiki

Alternative wiki module for Moodle 2 (designed for use in teaching and learning)
36 stars 33 forks source link

Use moodle_url to generate links in wiki history page #73

Open aolley opened 7 years ago

aolley commented 7 years ago

In M3.4+, MDL-59388 has changed how the linkarrow[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.