mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 01:39:24 +02:00
Update
This commit is contained in:
parent
03a1e91bec
commit
b4d7e894a3
3 changed files with 8 additions and 3 deletions
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue