Skip to content
This repository has been archived by the owner on Sep 10, 2021. It is now read-only.

Commit

Permalink
Remove ob_end_clean() sledgehammer
Browse files Browse the repository at this point in the history
This kills PHPUnit 3.6 and above and I the root cause of the behavior
that it cures was fixed in 4a6b62c.
  • Loading branch information
Jamie Snape committed Jun 27, 2014
1 parent 3661f98 commit 3a6d059
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions core/controllers/DownloadController.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,6 @@ public function indexAction()
}
else
{
while(ob_get_level() > 0)
{
ob_end_clean();
}
ob_start();
Zend_Loader::loadClass('ZipStream', BASE_PATH.'/library/ZipStream/');
$this->_helper->viewRenderer->setNoRender();
Expand Down Expand Up @@ -227,10 +223,6 @@ public function indexAction()
}

session_write_close(); //unlock session writing for concurrent access
while(ob_get_level() > 0)
{
ob_end_clean();
}
ob_start();
$zip = new ZipStream($name.'.zip');
UtilityComponent::disableMemoryLimit();
Expand Down Expand Up @@ -521,10 +513,6 @@ public function appletAction()
*/
private function _downloadEmptyItem($item)
{
while(ob_get_level() > 0)
{
ob_end_clean();
}
ob_start();
Zend_Loader::loadClass('ZipStream', BASE_PATH.'/library/ZipStream/');
$this->disableView();
Expand Down

0 comments on commit 3a6d059

Please sign in to comment.