mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 17:02:03 +02:00
MDL-27822 rename new methods
This commit is contained in:
parent
be7b29eff6
commit
25b4558c40
@ -67,7 +67,7 @@ abstract class restore_activity_task extends restore_task {
|
||||
$this->moduleid = $moduleid;
|
||||
}
|
||||
|
||||
public function set_old_module_version($oldmoduleversion) {
|
||||
public function set_old_moduleversion($oldmoduleversion) {
|
||||
$this->oldmoduleversion = $oldmoduleversion;
|
||||
}
|
||||
|
||||
@ -95,7 +95,7 @@ abstract class restore_activity_task extends restore_task {
|
||||
return $this->moduleid;
|
||||
}
|
||||
|
||||
public function get_old_module_version() {
|
||||
public function get_old_moduleversion() {
|
||||
return $this->oldmoduleversion;
|
||||
}
|
||||
|
||||
|
@ -2025,7 +2025,7 @@ class restore_module_structure_step extends restore_structure_step {
|
||||
$data = (object)$data;
|
||||
$oldid = $data->id;
|
||||
|
||||
$this->task->set_old_module_version($data->version);
|
||||
$this->task->set_old_moduleversion($data->version);
|
||||
|
||||
$data->course = $this->task->get_courseid();
|
||||
$data->module = $DB->get_field('modules', 'id', array('name' => $data->modulename));
|
||||
|
Loading…
x
Reference in New Issue
Block a user