Skip to content

Commit c8a2a8a

Browse files
committed
Removed ini_get to check if output-buffering is turned on. output buffering can be started regardless of it being turned on in php.ini.
1 parent 3830944 commit c8a2a8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AssetManager/Service/AssetManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public function setAssetOnResponse(ResponseInterface $response)
158158
if(!empty($this->config['clear_output_buffer']) && $this->config['clear_output_buffer']){
159159
// Only clean the output buffer if it's turned on and something
160160
// has been buffered.
161-
if(ini_get('output_buffering') && ob_get_length() > 0) {
161+
if(ob_get_length() > 0) {
162162
ob_clean();
163163
}
164164
}

0 commit comments

Comments
 (0)