mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
This commit is contained in:
parent
029ac1b5c7
commit
d5b5ea9bd8
2 changed files with 9 additions and 2 deletions
|
@ -10,6 +10,12 @@ $_POST['sort']["created"] = "DESC";
|
||||||
$_POST['current'] = 1;
|
$_POST['current'] = 1;
|
||||||
$_REQUEST['rowCount'] = getRowCount();
|
$_REQUEST['rowCount'] = getRowCount();
|
||||||
|
|
||||||
|
$advancedCustom = AVideoPlugin::getDataObject('CustomizeAdvanced');
|
||||||
|
|
||||||
|
if(!empty($advancedCustom->disableFeeds)){
|
||||||
|
forbiddenPage('Feeds are disabled');
|
||||||
|
}
|
||||||
|
|
||||||
if(empty($config)){
|
if(empty($config)){
|
||||||
require_once $global['systemRootPath'] . 'objects/configuration.php';
|
require_once $global['systemRootPath'] . 'objects/configuration.php';
|
||||||
$config = new AVideoConf();
|
$config = new AVideoConf();
|
||||||
|
|
|
@ -487,6 +487,8 @@ Disallow: *action=tagsearch*
|
||||||
$obj->autoConvertVideosToMP3 = false;
|
$obj->autoConvertVideosToMP3 = false;
|
||||||
$obj->allowDownloadMP3 = true;
|
$obj->allowDownloadMP3 = true;
|
||||||
|
|
||||||
|
$obj->disableFeeds = false;
|
||||||
|
|
||||||
return $obj;
|
return $obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -531,7 +533,6 @@ Disallow: *action=tagsearch*
|
||||||
return $_directUploadFiletypes;
|
return $_directUploadFiletypes;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public function navBar() {
|
public function navBar() {
|
||||||
$obj = $this->getDataObject();
|
$obj = $this->getDataObject();
|
||||||
$str = '';
|
$str = '';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue