mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 01:39:24 +02:00
Fix ob get clean
This commit is contained in:
parent
33bc92914a
commit
56f5a8574c
8 changed files with 24 additions and 30 deletions
|
@ -7999,7 +7999,7 @@ function _ob_start($force=false) {
|
|||
$global['ob_start_callback'] = null;
|
||||
}
|
||||
}
|
||||
if (empty($force) && ob_get_level()) {
|
||||
if (!empty($global['ob_start_callback']) && empty($force) && ob_get_level()) {
|
||||
return false;
|
||||
}
|
||||
ob_start($global['ob_start_callback']);
|
||||
|
@ -8024,7 +8024,7 @@ function _ob_get_clean() {
|
|||
}
|
||||
|
||||
function getIncludeFileContent($filePath, $varsArray=array()){
|
||||
global $global;
|
||||
global $global, $config;
|
||||
if(!empty($global['getIncludeFileContent'])){
|
||||
return getIncludeFileContentV2($filePath, $varsArray);
|
||||
}else{
|
||||
|
@ -8033,7 +8033,7 @@ function getIncludeFileContent($filePath, $varsArray=array()){
|
|||
}
|
||||
|
||||
function getIncludeFileContentV1($filePath, $varsArray=array()){
|
||||
global $global;
|
||||
global $global, $config;
|
||||
foreach ($varsArray as $key => $value) {
|
||||
$$key = $value;
|
||||
}
|
||||
|
@ -8067,7 +8067,7 @@ function getIncludeFileContentV1($filePath, $varsArray=array()){
|
|||
}
|
||||
|
||||
function getIncludeFileContentV2($filePath, $varsArray=array()){
|
||||
global $global;
|
||||
global $global, $config;
|
||||
foreach ($varsArray as $key => $value) {
|
||||
$$key = $value;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue