MDL-31405 assign: avoid uncessary get_string call

This commit is contained in:
Dan Poltawski
2013-10-21 11:03:10 +08:00
parent 6b2c8581fa
commit bd7a6434be
+2 -3
View File
@@ -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);
}