From 6fe51abe59e72fbc3b43cb75321351c15da7ea22 Mon Sep 17 00:00:00 2001 From: tjhunt Date: Wed, 7 Jan 2009 07:41:03 +0000 Subject: [PATCH] unit tests: Simple hack to avoid XHTML well-formedness errors during test DB upgrade. --- admin/report/unittest/index.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/admin/report/unittest/index.php b/admin/report/unittest/index.php index e0ad35dc85..fffc4006d2 100644 --- a/admin/report/unittest/index.php +++ b/admin/report/unittest/index.php @@ -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(); -- 2.39.5