Permalink
Browse files

MDL-22414 Exclude unsupported modules from the course contents

  • Loading branch information...
mudrd8mz committed Jun 10, 2011
1 parent b61cf3f commit b7119f4f3feecf0a8ccc3b005d6e3323c70175b3
Showing with 6 additions and 0 deletions.
  1. +6 −0 backup/converter/moodle1/handlerlib.php
@@ -826,6 +826,12 @@ public function process_course_section($data) {
public function process_course_module($data, $raw) {
global $CFG;
+ // check that this type of module should be included in the mbz
+ $modinfo = $this->converter->get_stash_itemids('modinfo_'.$data['modulename']);
+ if (empty($modinfo)) {
+ return;
+ }
+
// add the course module into the course contents list
$this->coursecontents[$data['id']] = array(
'cmid' => $data['id'],

0 comments on commit b7119f4

Please sign in to comment.