From 1e21bae999707cb356bc84cac41c7736bf6df727 Mon Sep 17 00:00:00 2001 From: Alexander Makarov Date: Tue, 16 Apr 2013 01:01:23 +0400 Subject: [PATCH] Removed Response::removeOutput, moved recursive buffer cleanup into Response::cleanOutput --- framework/base/Response.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/framework/base/Response.php b/framework/base/Response.php index af91a20a68..396b073fd8 100644 --- a/framework/base/Response.php +++ b/framework/base/Response.php @@ -40,19 +40,11 @@ class Response extends Component return ob_get_contents(); } - /** - * Discards the output buffer - */ - public function cleanOutput() - { - ob_clean(); - } - /** * Discards the output buffer * @param boolean $all if true recursively discards all output buffers used */ - public function removeOutput($all = true) + public function cleanOutput($all = true) { if ($all) { for ($level = ob_get_level(); $level > 0; --$level) {