https://bugzilla.wikimedia.org/show_bug.cgi?id=46836
--- Comment #10 from Roan Kattouw <[email protected]> --- (In reply to comment #9) > So it should just be <= instead of <, right? No. The problem is that $i increases while get_level() decreases at the same time. This is why caching get_level() changes the behavior to something that's arguably more correct. Probably the best way to do this would be something like while ( ob_get_level() > desired value ) { ob_end_clean(); } Problem is I don't know enough about output buffering offhand to know what the desired value is. I *think* it's 0. Maybe it's 1. Who knows. Output buffering is magical. -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
