mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Merge branch 'wip-mdl-31405-new' of git://github.com/rajeshtaneja/moodle
This commit is contained in:
commit
59dca9505b
1 changed files with 1 additions and 7 deletions
|
@ -3882,18 +3882,12 @@ function assignment_reset_userdata($data) {
|
|||
|
||||
// Updating dates - shift may be negative too.
|
||||
if ($data->timeshift) {
|
||||
$plugintypestrkey = 'type'.$this->type;
|
||||
if (get_string_manager()->string_exists($plugintypestrkey, 'assignment')) {
|
||||
$typestr = get_string_manager()->get_string($plugintypestrkey, 'assignment');
|
||||
} else {
|
||||
$typestr = get_string_manager()->get_string($plugintypestrkey, 'assignment_'.$this->type);
|
||||
}
|
||||
shift_course_mod_dates('assignment',
|
||||
array('timedue', 'timeavailable'),
|
||||
$data->timeshift,
|
||||
$data->courseid);
|
||||
$status[] = array('component' => get_string('modulenameplural', 'assignment'),
|
||||
'item' => get_string('datechanged').': '.$typestr,
|
||||
'item' => get_string('datechanged'),
|
||||
'error' => false);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue