Skip to content
Browse files

Merge branch 'MDL-33080_22' of git://github.com/stronk7/moodle into M…

…OODLE_22_STABLE
  • Loading branch information...
2 parents 52b6c9b + 2b75dbe commit 29515af1d8c917e5f1e42c82ed94e41182a0989c @samhemelryk samhemelryk committed
Showing with 5 additions and 0 deletions.
  1. +5 −0 backup/cc/cc2moodle.php
View
5 backup/cc/cc2moodle.php
@@ -71,6 +71,11 @@ public static function get_manifest($folder) {
return false;
}
+ // Before iterate over directories, try to find one manifest at top level
+ if (file_exists($folder . '/imsmanifest.xml')) {
+ return $folder . '/imsmanifest.xml';
+ }
+
$result = false;
try {
$dirIter = new RecursiveDirectoryIterator($folder, RecursiveDirectoryIterator::KEY_AS_PATHNAME);

0 comments on commit 29515af

Please sign in to comment.
Something went wrong with that request. Please try again.