X-Git-Url: http://git.moodle.org/gw?p=moodle.git;a=blobdiff_plain;f=backup%2Fmoodle2%2Frestore_subplugin.class.php;h=8972e358405e26a24dad65feba454f5ca1009630;hp=d22a0d9c1f894cc35f008308271be4ace301c6c9;hb=4b43b1074f112a39a745f28affceb6fa0fd2e04b;hpb=07a36633f9554c7b90ea6fcd6b3f8c4eca4db210 diff --git a/backup/moodle2/restore_subplugin.class.php b/backup/moodle2/restore_subplugin.class.php index d22a0d9c1f8..8972e358405 100644 --- a/backup/moodle2/restore_subplugin.class.php +++ b/backup/moodle2/restore_subplugin.class.php @@ -123,9 +123,12 @@ abstract class restore_subplugin { /** * Return the new id of a mapping for the given itemname * + * @param string $itemname the type of item + * @param int $oldid the item ID from the backup + * @param mixed $ifnotfound what to return if $oldid wasnt found. Defaults to false */ - protected function get_mappingid($itemname, $oldid) { - return $this->step->get_mappingid($itemname, $oldid); + protected function get_mappingid($itemname, $oldid, $ifnotfound = false) { + return $this->step->get_mappingid($itemname, $oldid, $ifnotfound); } /**