summaryrefslogtreecommitdiffstats
path: root/system/core
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-01-09 09:16:41 +0100
committerAndrey Andreev <narf@bofh.bg>2012-01-09 09:16:41 +0100
commitcba20b164fdb1e60225b4f1fc04b7a31c4ffa106 (patch)
treeb6fd8d5e3858c1290b13aee358f8a68d998ba12c /system/core
parentedc875593d3ddbd0fe86caf6380a62b00a20f245 (diff)
Really fix this ...
Diffstat (limited to 'system/core')
-rwxr-xr-xsystem/core/Output.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/system/core/Output.php b/system/core/Output.php
index 69a2e5f88..d27133d37 100755
--- a/system/core/Output.php
+++ b/system/core/Output.php
@@ -396,8 +396,9 @@ class CI_Output {
// If the output data contains closing </body> and </html> tags
// we will remove them and add them back after we insert the profile data
- $output = preg_replace('|</body>.*?</html>|is', '', $output, $count).$CI->profiler->run();
- if (isset($count) && $count > 0)
+ $count = 0;
+ $output = preg_replace('|</body>.*?</html>|is', '', $output, -1, $count).$CI->profiler->run();
+ if ($count > 0)
{
$output .= '</body></html>';
}