mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 01:39:24 +02:00
Fix some warnings
This commit is contained in:
parent
9d864a0961
commit
beed34e4d7
3 changed files with 19 additions and 4 deletions
|
@ -59,10 +59,23 @@ if (empty($advancedCustom->disableHTMLDescription)) {
|
||||||
var tinyMCEtoolbar = 'fullscreen | formatselect | bold italic strikethrough | link image media pageembed | numlist bullist | removeformat | addcomment';
|
var tinyMCEtoolbar = 'fullscreen | formatselect | bold italic strikethrough | link image media pageembed | numlist bullist | removeformat | addcomment';
|
||||||
var tinyMCEmenubar = 'edit insert view format table tools help';
|
var tinyMCEmenubar = 'edit insert view format table tools help';
|
||||||
<?php
|
<?php
|
||||||
} ?>
|
}
|
||||||
|
|
||||||
|
$language = ($_SESSION['language'] == 'en_US') ? 'us' : $_SESSION['language'];
|
||||||
|
$langFile = 'node_modules/tinymce-langs/langs/' . $language . '.js';
|
||||||
|
|
||||||
|
if(file_exists($global['systemRootPath'].$langFile)){
|
||||||
|
$language = "'{$language}'";
|
||||||
|
$language_url = "'".getURL($langFile)."'";
|
||||||
|
}else{
|
||||||
|
$language = 'null';
|
||||||
|
$language_url = 'null';
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
tinymce.init({
|
tinymce.init({
|
||||||
language: "<?php echo ($_SESSION['language'] == 'en_US') ? 'us' : $_SESSION['language']; ?>",
|
language: <?php echo $language; ?>,
|
||||||
language_url: '<?php echo getURL('node_modules/tinymce-langs/langs/' . (($_SESSION['language'] == 'en_US') ? 'us' : $_SESSION['language']) . '.js'); ?>',
|
language_url: <?php echo $language_url; ?>,
|
||||||
selector: '#<?php echo $id; ?>', // change this value according to your HTML
|
selector: '#<?php echo $id; ?>', // change this value according to your HTML
|
||||||
plugins: tinyMCEplugins,
|
plugins: tinyMCEplugins,
|
||||||
//toolbar: 'fullscreen | formatselect | bold italic strikethrough forecolor backcolor permanentpen formatpainter | link image media pageembed | alignleft aligncenter alignright alignjustify | numlist bullist outdent indent | removeformat | addcomment',
|
//toolbar: 'fullscreen | formatselect | bold italic strikethrough forecolor backcolor permanentpen formatpainter | link image media pageembed | alignleft aligncenter alignright alignjustify | numlist bullist outdent indent | removeformat | addcomment',
|
||||||
|
|
|
@ -77,6 +77,7 @@ if (!empty($chat2) && !empty($chat2->useStaticLayout)) {
|
||||||
$col1Class = "col-md-8 col-lg-8";
|
$col1Class = "col-md-8 col-lg-8";
|
||||||
$col2Class = "col-md-4 col-lg-4";
|
$col2Class = "col-md-4 col-lg-4";
|
||||||
}
|
}
|
||||||
|
$global['doNotLoadPlayer'] = 1;
|
||||||
?>
|
?>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="<?php echo $_SESSION['language']; ?>">
|
<html lang="<?php echo $_SESSION['language']; ?>">
|
||||||
|
|
|
@ -12,9 +12,10 @@ if ($objLive->allowMultipleLivesPerUser) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$islive = isLive();
|
$islive = getLiveKey();
|
||||||
$liveStreamObject = new LiveStreamObject($islive['key'], $islive['live_servers_id'], @$_REQUEST['live_index'], 0);
|
$liveStreamObject = new LiveStreamObject($islive['key'], $islive['live_servers_id'], @$_REQUEST['live_index'], 0);
|
||||||
$key = $liveStreamObject->getKeyWithIndex(true);
|
$key = $liveStreamObject->getKeyWithIndex(true);
|
||||||
|
//var_dump(getLiveKey(), $islive, $key);exit;
|
||||||
?>
|
?>
|
||||||
<style>
|
<style>
|
||||||
#streamkey{
|
#streamkey{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue