1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-06 03:50:04 +02:00
Daniel Neto 2024-11-13 09:56:09 -03:00
parent 9776de2680
commit aa48a4bd12
2 changed files with 57 additions and 29 deletions

View file

@ -2627,8 +2627,7 @@ function getAdsDebugTag($adCode)
if(!empty($_REQUEST['AdsDebug']) && User::isAdmin()){
$function = debug_backtrace()[1]["function"];
$function = str_replace('get', '', $function);
$reason = ADs::getAdsCodeReason($global['lastAdsCodeType']);
$adCode = "<div class=\"AdsDebug\">{$function}<br>".implode('<br>', $reason)."<br>$adCode</div>";
$adCode = "<div class=\"AdsDebug\">{$function}<br>{$global['lastAdsCodeReason']}<br>$adCode</div>";
}
return $adCode;
}