Merge branch 'MDL-47569_CC_Errors' of git://github.com/moodlerooms/moodle

This commit is contained in:
Marina Glancy 2014-10-30 16:15:51 +08:00
commit 89da9fa67b
2 changed files with 4 additions and 2 deletions

View File

@ -338,7 +338,7 @@ class cc2moodle {
$replace_values = array($i,
$i - 1,
$topic['title'],
entities::safexml($topic['title']),
$node_node_course_sections_section_mods_mod);
} else {

View File

@ -1292,7 +1292,9 @@ class moodle1_question_bank_handler extends moodle1_xml_handler {
* Closes the questions wrapper
*/
public function on_questions_end() {
$this->xmlwriter->end_tag('questions');
if ($this->questionswrapperwritten) {
$this->xmlwriter->end_tag('questions');
}
}
/**