]> git.mjollnir.org Git - moodle.git/commitdiff
unit tests: Simple hack to avoid XHTML well-formedness errors during test DB upgrade.
authortjhunt <tjhunt>
Wed, 7 Jan 2009 07:41:03 +0000 (07:41 +0000)
committertjhunt <tjhunt>
Wed, 7 Jan 2009 07:41:03 +0000 (07:41 +0000)
admin/report/unittest/index.php

index e0ad35dc8556ae7a7d63265d9a8b63de0d9723c6..fffc4006d25a395e0075e9110f2b5e1d758c618c 100644 (file)
@@ -29,6 +29,10 @@ $continuesetuptesttables = optional_param('continuesetuptesttables', false, PARA
 $droptesttables = optional_param('droptesttables', false, PARAM_BOOL);
 $testtablesok = optional_param('testtablesok', false, PARAM_BOOL);
 
+if ($setuptesttables || $continuesetuptesttables || $upgradetesttables) {
+    // Make sure this option is off during upgrade. It is not very helpful, and can break things.
+    $CFG->xmlstrictheaders = false;
+}
 admin_externalpage_setup('reportsimpletest', '', array('showpasses' => $showpasses,
         'showsearch' => $showsearch, 'thorough' => $thorough));
 admin_externalpage_print_header();