mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 04:22:07 +02:00
MDL-54751 core_grade: Fix missing require_once in grade_item get_name
This commit is contained in:
parent
a2c0528802
commit
a9ac13885c
@ -1399,6 +1399,8 @@ class grade_item extends grade_object {
|
||||
* @return string name
|
||||
*/
|
||||
public function get_name($fulltotal=false) {
|
||||
global $CFG;
|
||||
require_once($CFG->dirroot . '/course/lib.php');
|
||||
if (strval($this->itemname) !== '') {
|
||||
// MDL-10557
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user