Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Neto committed Jul 24, 2024
1 parent c70d086 commit f9374de
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plugin/TopMenu/actionButtonNetflix.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
echo PHP_EOL.'<!-- action menu typeActionMenuCustomURL start count='.count($menu).' videos_id='.$videos_id.'; ?> -->'.PHP_EOL;

foreach ($menu as $key => $value) {
$menuItems = MenuItem::getAllFromMenu($videos_id, true);
$menuItems = MenuItem::getAllFromMenu($value['id'], true);
//echo PHP_EOL.'<!-- action menuItems typeActionMenuCustomURL start countItens='.count($menuItems).' -->'.PHP_EOL;
foreach ($menuItems as $key2 => $value2) {
$url = TopMenu::getVideoMenuURL($videos_id, $value2['id']);
Expand Down Expand Up @@ -67,7 +67,7 @@
echo PHP_EOL.'<!-- action menu typeActionMenuCustomURLForLoggedUsers start -->'.PHP_EOL;
$menu = Menu::getAllActive(Menu::$typeActionMenuCustomURLForLoggedUsers);
foreach ($menu as $key => $value) {
$menuItems = MenuItem::getAllFromMenu($videos_id, true);
$menuItems = MenuItem::getAllFromMenu($value['id'], true);
foreach ($menuItems as $key2 => $value2) {
$url = TopMenu::getVideoMenuURL($videos_id, $value2['id']);
if (empty($url)) {
Expand Down Expand Up @@ -95,7 +95,7 @@

$menu = Menu::getAllActive(Menu::$typeActionMenuCustomURLForUsersThatCanWatchVideo);
foreach ($menu as $key => $value) {
$menuItems = MenuItem::getAllFromMenu($videos_id, true);
$menuItems = MenuItem::getAllFromMenu($value['id'], true);
foreach ($menuItems as $key2 => $value2) {
$url = TopMenu::getVideoMenuURL($videos_id, $value2['id']);
if (empty($url)) {
Expand Down Expand Up @@ -125,7 +125,7 @@
echo PHP_EOL.'<!-- action menu typeActionMenuCustomURLForUsersThatCanNotWatchVideo start -->'.PHP_EOL;
$menu = Menu::getAllActive(Menu::$typeActionMenuCustomURLForUsersThatCanNotWatchVideo);
foreach ($menu as $key => $value) {
$menuItems = MenuItem::getAllFromMenu($videos_id, true);
$menuItems = MenuItem::getAllFromMenu($value['id'], true);
foreach ($menuItems as $key2 => $value2) {
$url = TopMenu::getVideoMenuURL($videos_id, $value2['id']);
if (empty($url)) {
Expand Down

0 comments on commit f9374de

Please sign in to comment.