mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-06 03:50:04 +02:00
This commit is contained in:
parent
6e4466d4b2
commit
2cc7e5ac15
1 changed files with 59 additions and 59 deletions
|
@ -33,7 +33,7 @@ class CookieAlert extends PluginAbstract {
|
||||||
|
|
||||||
private function doNotShow(){
|
private function doNotShow(){
|
||||||
$baseName = basename($_SERVER["SCRIPT_FILENAME"]);
|
$baseName = basename($_SERVER["SCRIPT_FILENAME"]);
|
||||||
if(isEmbed() || preg_match("/embed/i", $baseName) || !empty($_GET['embed'])){
|
if(isEmbed() || preg_match("/embed/i", $baseName) || preg_match("/chat2/i", $baseName) || !empty($_GET['embed'])){
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue