MDL-54751 core_grade: Fix missing require_once in grade_item get_name

This commit is contained in:
Jake Dallimore 2016-11-07 13:50:36 +08:00
parent a2c0528802
commit a9ac13885c

View File

@ -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