1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 09:49:28 +02:00
This commit is contained in:
Daniel Neto 2024-04-04 14:36:40 -03:00
parent 03a1e91bec
commit b4d7e894a3
3 changed files with 8 additions and 3 deletions

View file

@ -162,6 +162,7 @@ class TagsHasVideos extends ObjectYPT {
}
$sql = "SELECT t.*, tv.* FROM " . static::getTableName() . " tv LEFT JOIN tags as t ON tags_id = t.id WHERE tags_types_id = ? AND videos_id=? ";
$res = sqlDAL::readSql($sql, "ii", array($tags_types_id, $videos_id));
//var_dump($sql, $tags_types_id, $videos_id);
$fullData = sqlDAL::fetchAllAssoc($res);
sqlDAL::close($res);

View file

@ -431,10 +431,12 @@ class VideoTags extends PluginAbstract {
$get = $_GET;
unset($_GET);
$types = TagsTypes::getAll();
//var_dump($videos_id, $types);
$obj = AVideoPlugin::getDataObject('VideoTags');
$tagsStrList = array();
foreach ($types as $type) {
$tags = TagsHasVideos::getAllFromVideosIdAndTagsTypesId($videos_id, $type['id']);
//var_dump($tags);
$strT = "";
foreach ($tags as $value) {
if (empty($value['name']) || $value['name'] === '-') {
@ -455,6 +457,7 @@ class VideoTags extends PluginAbstract {
$tagsStrList[] = "{$label}{$strT}";
}
}
//exit;
$_POST = $post;
$_GET = $get;

View file

@ -3,9 +3,10 @@ if (empty($global['systemRootPath'])) {
require_once '../videos/configuration.php';
}
require_once $global['systemRootPath'] . 'objects/subscribe.php';
if((empty($video) || !is_array($video)) && !empty($_GET['videos_id'])){
$video = Video::getVideo(intval($_GET['videos_id']), Video::SORT_TYPE_VIEWABLE, true, false, true, true);
}
$videos_id = getVideos_id();
$video = Video::getVideoLight($videos_id);
//var_dump($video['filename']);exit;
if (is_array($video)) {
$html = '';
//var_dump(__LINE__, !empty($advancedCustom->showCreationTimeOnVideoItem));exit;