Hide My Podcasts feature

This commit is contained in:
jo 2021-09-06 14:40:40 +02:00
parent 1d33c037e3
commit 0c4a294265
2 changed files with 13 additions and 9 deletions

View File

@ -13,14 +13,16 @@
* in the menu.phtml script when they are output.
*/
$pages = array();
$pages[] = array(
'label' => _('My Podcast'),
'module' => 'default',
'controller' => 'podcast',
'action' => 'station',
'resource' => 'podcast',
'class' => '<i class="icon-music icon-white"></i>'
);
// Disable My podcasts
// See https://github.com/LibreTime/libretime/issues/1320
// $pages[] = array(
// 'label' => _('My Podcast'),
// 'module' => 'default',
// 'controller' => 'podcast',
// 'action' => 'station',
// 'resource' => 'podcast',
// 'class' => '<i class="icon-music icon-white"></i>'
// );
$pages[] = array(
'label' => _('Radio Page'),
'uri' => '/',

View File

@ -119,7 +119,9 @@ class LibraryController extends Zend_Controller_Action
if ($isAdminOrPM || $file->getFileOwnerId() == $user->getId()) {
$menu["del"] = array("name"=> _("Delete"), "icon" => "delete", "url" => $baseUrl."library/delete");
$menu["edit"] = array("name"=> _("Edit..."), "icon" => "edit", "url" => $baseUrl."library/edit-file-md/id/{$id}");
$menu["publish"] = array("name"=> _("Publish..."), "url" => $baseUrl."library/publish/id/{$id}");
// Disable My podcasts
// See https://github.com/LibreTime/libretime/issues/1320
// $menu["publish"] = array("name"=> _("Publish..."), "url" => $baseUrl."library/publish/id/{$id}");
}
// It's important that we always return the parent id (cc_files id)