MDL-76415 tool_componentlibrary: Fixed str interpolation deprecations.

Since PHP 8.2, placing the dollar sign outside the curly brace is deprecated when
the expression inside the braces resolves to a variable or an expression.
This commit is contained in:
Meirza 2023-01-26 09:54:01 +07:00
parent 90e94a3498
commit 113c78a110

View File

@ -33,7 +33,7 @@ require_capability('moodle/site:configview', context_system::instance());
$jsdocdir = "{$CFG->dirroot}/jsdoc";
if (file_exists($jsdocdir) && is_dir($jsdocdir)) {
$relativepath = get_file_argument();
redirect(new moodle_url("/jsdoc/${relativepath}"));
redirect(new moodle_url("/jsdoc/{$relativepath}"));
}
$PAGE->set_pagelayout('base');