From 3cb79f0e8a80fc575a2f2bc354e5d523d0c03f65 Mon Sep 17 00:00:00 2001 From: jgen Date: Sun, 16 Feb 2014 19:36:52 -0500 Subject: [PATCH] SimpleTest works now. --- ext/simpletest/theme.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ext/simpletest/theme.php b/ext/simpletest/theme.php index 88b1645e..445e4256 100644 --- a/ext/simpletest/theme.php +++ b/ext/simpletest/theme.php @@ -20,6 +20,8 @@ class SCoreWebReporter extends HtmlReporter { } function paintFooter($test_name) { + global $page; + //parent::paintFooter($test_name); if(($this->fails + $this->exceptions) > 0) { $style = "background: red;"; @@ -33,7 +35,7 @@ class SCoreWebReporter extends HtmlReporter { $this->exceptions . " exceptions" . "
Passed modules: " . implode(", ", $this->clear_modules) . ""; - $this->page->add_block(new Block("Results", $html, "main", 40)); + $page->add_block(new Block("Results", $html, "main", 40)); } function paintGroupStart($name, $size) { @@ -42,7 +44,7 @@ class SCoreWebReporter extends HtmlReporter { } function paintGroupEnd($name) { - global $page; + global $page; $matches = array(); if(preg_match("#ext/(.*)/test.php#", $name, $matches)) { @@ -55,7 +57,7 @@ class SCoreWebReporter extends HtmlReporter { } else { $this->current_html .= "

$link"; - $this->page->add_block(new Block($name, $this->current_html, "main", 50)); + $page->add_block(new Block($name, $this->current_html, "main", 50)); $this->current_html = ""; } }