mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 17:59:55 +02:00
Fix obclean
This commit is contained in:
parent
aeaba40803
commit
08116a0fc0
1 changed files with 2 additions and 7 deletions
|
@ -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;
|
return false;
|
||||||
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;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue