Browse Source

! A few ob_XXX cleanups left from php < 4.2

Spuds 13 years ago
parent
commit
1a217b886f
2 changed files with 2 additions and 17 deletions
  1. 1 10
      Sources/Display.php
  2. 1 7
      Sources/Subs.php

+ 1 - 10
Sources/Display.php

@@ -1392,17 +1392,8 @@ function Download()
 	if (filesize($filename) > 4194304)
 	{
 		// Forcibly end any output buffering going on.
-		if (function_exists('ob_get_level'))
-		{
-			while (@ob_get_level() > 0)
-				@ob_end_clean();
-		}
-		else
-		{
+		while (@ob_get_level() > 0)
 			@ob_end_clean();
-			@ob_end_clean();
-			@ob_end_clean();
-		}
 
 		$fp = fopen($filename, 'rb');
 		while (!feof($fp))

+ 1 - 7
Sources/Subs.php

@@ -2675,13 +2675,7 @@ function obExit($header = null, $do_footer = null, $from_index = false, $from_fa
 	{
 		// The theme author wants to use the STRICT doctype (only God knows why).
 		$temp = ob_get_contents();
-		if (function_exists('ob_clean'))
-			ob_clean();
-		else
-		{
-			ob_end_clean();
-			ob_start('ob_sessrewrite');
-		}
+		ob_clean();
 
 		echo strtr($temp, array(
 			'var smf_iso_case_folding' => 'var target_blank = \'_blank\'; var smf_iso_case_folding',