Merge branch 'MDL-75623-master' of https://github.com/sh-csg/moodle

This commit is contained in:
Ilya Tregubov 2023-05-10 11:42:56 +08:00
commit 954e523be8
No known key found for this signature in database
GPG Key ID: 0F58186F748E55C1
2 changed files with 2 additions and 0 deletions

View File

@ -167,6 +167,7 @@ class backup_course_task extends backup_task {
$content = self::encode_links_helper($content, 'GRADEREPORTINDEXBYID', '/grade/report/index.php?id=');
$content = self::encode_links_helper($content, 'BADGESVIEWBYID', '/badges/view.php?type=2&id=');
$content = self::encode_links_helper($content, 'USERINDEXVIEWBYID', '/user/index.php?id=');
$content = self::encode_links_helper($content, 'PLUGINFILEBYCONTEXT', '/pluginfile.php/');
return $content;
}

View File

@ -166,6 +166,7 @@ class restore_course_task extends restore_task {
$rules[] = new restore_decode_rule('GRADEREPORTINDEXBYID', '/grade/report/index.php?id=$1', 'course');
$rules[] = new restore_decode_rule('BADGESVIEWBYID', '/badges/view.php?type=2&id=$1', 'course');
$rules[] = new restore_decode_rule('USERINDEXVIEWBYID', '/user/index.php?id=$1', 'course');
$rules[] = new restore_decode_rule('PLUGINFILEBYCONTEXT', '/pluginfile.php/$1', 'context');
return $rules;
}