MDL-31405 assign: avoid uncessary get_string call
This commit is contained in:
+2
-3
@@ -83,14 +83,13 @@ function assign_reset_userdata($data) {
|
||||
}
|
||||
}
|
||||
// Updating dates - shift may be negative too.
|
||||
$componentstr = get_string('modulenameplural', 'assign');
|
||||
|
||||
if ($data->timeshift) {
|
||||
shift_course_mod_dates('assign',
|
||||
array('duedate', 'allowsubmissionsfromdate', 'cutoffdate'),
|
||||
$data->timeshift,
|
||||
$data->courseid);
|
||||
$status[] = array('component' => $componentstr,
|
||||
|
||||
$status[] = array('component' => get_string('modulenameplural', 'assign'),
|
||||
'item' => get_string('datechanged'),
|
||||
'error' => false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user