Permalink
Browse files

MDL-31405 assign: avoid uncessary get_string call

  • Loading branch information...
1 parent 57bafe6 commit 6e72e0a6aae4d098f4c04dd10bd32c59a97710ac @danpoltawski danpoltawski committed Oct 21, 2013
Showing with 2 additions and 3 deletions.
  1. +2 −3 mod/assign/lib.php
View
@@ -78,14 +78,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);
}

0 comments on commit 6e72e0a

Please sign in to comment.