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 = ""; } }