Merge branch 'MDL-79147-master' of https://github.com/ferranrecio/moodle

This commit is contained in:
Andrew Nicols 2023-08-24 23:47:00 +08:00
commit 108ed280e8
No known key found for this signature in database
GPG Key ID: 6D1E3157C8CFBF14

View File

@ -72,7 +72,7 @@ class mustache_filesystem_loader extends \Mustache_Loader_FilesystemLoader {
* @param string $name the template name
* @return string Mustache Template source
*/
public function load($name): string {
public function load($name) {
global $CFG;
if (!empty($CFG->debugtemplateinfo)) {
// We use many templates per page. We don't want to allocate more memory than necessary.