1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 17:59:55 +02:00

Fix obclean

This commit is contained in:
DanieL 2022-04-07 17:17:48 -03:00
parent aeaba40803
commit 08116a0fc0

View file

@ -7987,18 +7987,13 @@ function _ob_start() {
} }
} }
if (ob_get_level()) { if (ob_get_level()) {
//var_dump(!in_array($global['ob_start_callback'], ob_list_handlers()),$global['ob_start_callback'], ob_list_handlers());exit;
if(isset($global['ob_start_callback']) && !empty($global['ob_start_callback']) && !in_array($global['ob_start_callback'], ob_list_handlers())){
ob_end_clean();
}else{
return false; return false;
} }
}
ob_start($global['ob_start_callback']); ob_start($global['ob_start_callback']);
} }
function getIncludeFileContent($filePath, $varsArray=array()){ function getIncludeFileContent($filePath, $varsArray=array()){
return getIncludeFileContentV2($filePath, $varsArray); //return getIncludeFileContentV2($filePath, $varsArray);
global $global; global $global;
foreach ($varsArray as $key => $value) { foreach ($varsArray as $key => $value) {
$$key = $value; $$key = $value;