summaryrefslogtreecommitdiff
path: root/tdd-bootstrap.php
diff options
context:
space:
mode:
Diffstat (limited to 'tdd-bootstrap.php')
-rw-r--r--tdd-bootstrap.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/tdd-bootstrap.php b/tdd-bootstrap.php
index 255e535..79320b6 100644
--- a/tdd-bootstrap.php
+++ b/tdd-bootstrap.php
@@ -74,8 +74,7 @@ class Protocol {
$meta = $head->find('meta');
foreach ($meta as $metaTag) {
if ($metaTag->hasAttribute('http-equiv') && strtolower($metaTag->getAttribute('http-equiv')) == 'refresh') {
- $head->innertext .= '<script type="text/javascript">setTimeout(function() { location.reload(); }, ' . ($metaTag->getAttribute('content') * 1000) . ');</script>';
- $metaTag->outertext = ''; // delete $metaTag
+ $head->innertext = str_replace($metaTag->outertext, '', $head->innertext) . '<script type="text/javascript">setTimeout(function() { location.reload(); }, ' . ($metaTag->getAttribute('content') * 1000) . ');</script>';
break;
}
}