MDL-36754 core_files: Support tokens when rewriting text
commit91f1f282331aa0e3d575ec80845cd4ce763e81e7
authorAndrew Nicols <andrew@nicols.co.uk>
Sun, 3 Jun 2018 13:14:40 +0000 (3 21:14 +0800)
committerAndrew Nicols <andrew@nicols.co.uk>
Mon, 13 Aug 2018 22:57:32 +0000 (14 06:57 +0800)
treeb25ca34fa01ecfbc595a70ed882166d4543d20e3
parent4a74ab0200d472f600d238787ebbc5e782b2135d
MDL-36754 core_files: Support tokens when rewriting text

Support use of a token for access to pluginfile.php when rewriting text
content.

This is primarily intended for notifications where the user is unlikely
to be logged into Moodle when receiving the notification.
lib/filelib.php
lib/tests/filelib_test.php