Index: trunk/phase3/includes/resourceloader/ResourceLoader.php |
— | — | @@ -462,10 +462,9 @@ |
463 | 463 | // On some setups, ob_get_level() doesn't seem to go down to zero |
464 | 464 | // no matter how often we call ob_get_clean(), so instead of doing |
465 | 465 | // the more intuitive while ( ob_get_level() > 0 ) ob_get_clean(); |
466 | | - // we have to be safe here and check the return value to avoid an |
467 | | - // infinite loop. (bug 26370) |
468 | | - while ( ob_get_level() > 0 && ob_end_clean() ) { |
469 | | - // repeat |
| 466 | + // we have to be safe here and avoid an infinite loop. |
| 467 | + for ( $i = 0; $i < ob_get_level(); $i++ ) { |
| 468 | + ob_end_clean(); |
470 | 469 | } |
471 | 470 | |
472 | 471 | header( 'HTTP/1.0 304 Not Modified' ); |