1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 01:39:24 +02:00
Daniel Neto 2024-08-28 10:23:30 -03:00
parent 029ac1b5c7
commit d5b5ea9bd8
2 changed files with 9 additions and 2 deletions

View file

@ -10,6 +10,12 @@ $_POST['sort']["created"] = "DESC";
$_POST['current'] = 1;
$_REQUEST['rowCount'] = getRowCount();
$advancedCustom = AVideoPlugin::getDataObject('CustomizeAdvanced');
if(!empty($advancedCustom->disableFeeds)){
forbiddenPage('Feeds are disabled');
}
if(empty($config)){
require_once $global['systemRootPath'] . 'objects/configuration.php';
$config = new AVideoConf();

View file

@ -486,6 +486,8 @@ Disallow: *action=tagsearch*
$obj->autoConvertVideosToMP3 = false;
$obj->allowDownloadMP3 = true;
$obj->disableFeeds = false;
return $obj;
}
@ -531,7 +533,6 @@ Disallow: *action=tagsearch*
return $_directUploadFiletypes;
}
public function navBar() {
$obj = $this->getDataObject();
$str = '';
@ -781,7 +782,7 @@ Disallow: *action=tagsearch*
return @$externalOptions->redirectVideo;
}
public static function setShortSummaryAndMetaDescriptionVideo($videos_id, $ShortSummary, $MetaDescription) {
public static function setShortSummaryAndMetaDescriptionVideo($videos_id, $ShortSummary, $MetaDescription) {
if (!Video::canEdit($videos_id)) {
return false;
}