catalyst / moodle-tool_excimer

A Moodle tool to find bottlenecks in your code safely in production
https://moodle.org/plugins/tool_excimer
GNU General Public License v3.0
13 stars 9 forks source link

Use relative path to graph php files in template javascript #332

Closed tonyjbutler closed 2 months ago

tonyjbutler commented 11 months ago

For (admittedly usually dev) Moodle sites located in a subdirectory of the apache root, the graphs can't be displayed because the template requests to the {...}graph.json.php files return 404 errors.

Prefixing the path with the actual wwwroot as defined in config.php fixes this. Edit: Actually it doesn't (was testing in the wrong dev instance), but using a relative path does. These templates are only rendered in profile.php so this should be fine (I hope).