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