mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
MDL-76415 assignfeedback_editpdf: 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
d8474a647a
commit
3c0fa9b9cb
@ -70,7 +70,7 @@ if ($action === 'pollconversions') {
|
|||||||
|
|
||||||
// Get a lock for the PDF/Image conversion of the assignment files.
|
// Get a lock for the PDF/Image conversion of the assignment files.
|
||||||
$lockfactory = \core\lock\lock_config::get_lock_factory('assignfeedback_editpdf_pollconversions');
|
$lockfactory = \core\lock\lock_config::get_lock_factory('assignfeedback_editpdf_pollconversions');
|
||||||
$resource = "user:${userid},assignmentid:${assignmentid},attemptnumber:${attemptnumber}";
|
$resource = "user:{$userid},assignmentid:{$assignmentid},attemptnumber:{$attemptnumber}";
|
||||||
$lock = $lockfactory->get_lock($resource, 0);
|
$lock = $lockfactory->get_lock($resource, 0);
|
||||||
|
|
||||||
// Could not get lock, send back JSON to poll again.
|
// Could not get lock, send back JSON to poll again.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user