mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 17:02:03 +02:00
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:
parent
90e94a3498
commit
113c78a110
@ -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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user