From bb9f82af560dd42f3b9e53956d749b3ad328c7b4 Mon Sep 17 00:00:00 2001 From: Jocy Date: Thu, 11 May 2017 22:37:17 +0200 Subject: [PATCH] Renamed renderMenuIcon to renderMenuEntry --- core/Admin/ActionsMenu.php | 2 +- core/Manialinks/SidebarMenuEntryRenderable.php | 2 +- core/Manialinks/SidebarMenuManager.php | 4 ++-- plugins/MCTeam/CustomVotesPlugin.php | 2 +- plugins/MCTeam/DonationPlugin.php | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/core/Admin/ActionsMenu.php b/core/Admin/ActionsMenu.php index 0208bacf..c69f71b5 100644 --- a/core/Admin/ActionsMenu.php +++ b/core/Admin/ActionsMenu.php @@ -361,7 +361,7 @@ class ActionsMenu implements SidebarMenuEntryRenderable, CallbackListener, Mania /** * Call here the function which updates the MenuIcon Manialink */ - public function renderMenuIcon() { + public function renderMenuEntry() { $this->rebuildAndShowMenu(); } } diff --git a/core/Manialinks/SidebarMenuEntryRenderable.php b/core/Manialinks/SidebarMenuEntryRenderable.php index 4e04c583..1144a3cb 100644 --- a/core/Manialinks/SidebarMenuEntryRenderable.php +++ b/core/Manialinks/SidebarMenuEntryRenderable.php @@ -17,5 +17,5 @@ interface SidebarMenuEntryRenderable { /** * Call here the function which updates the MenuIcon Manialink */ - public function renderMenuIcon(); + public function renderMenuEntry(); } \ No newline at end of file diff --git a/core/Manialinks/SidebarMenuManager.php b/core/Manialinks/SidebarMenuManager.php index 742f9da6..3d8cbeba 100644 --- a/core/Manialinks/SidebarMenuManager.php +++ b/core/Manialinks/SidebarMenuManager.php @@ -117,7 +117,7 @@ class SidebarMenuManager implements UsageInformationAble, CallbackListener { $registered = false; foreach ($this->registeredClasses as $class) { - $class->renderMenuIcon(); + $class->renderMenuEntry(); if ($class == $render) { $registered = true; } @@ -125,7 +125,7 @@ class SidebarMenuManager implements UsageInformationAble, CallbackListener { if (!$registered) { array_push($this->registeredClasses, $render); - $render->renderMenuIcon(); + $render->renderMenuEntry(); } return true; diff --git a/plugins/MCTeam/CustomVotesPlugin.php b/plugins/MCTeam/CustomVotesPlugin.php index 201ebe30..527d4704 100644 --- a/plugins/MCTeam/CustomVotesPlugin.php +++ b/plugins/MCTeam/CustomVotesPlugin.php @@ -802,7 +802,7 @@ class CustomVotesPlugin implements SidebarMenuEntryRenderable, CommandListener, /** * Call here the function which updates the MenuIcon Manialink */ - public function renderMenuIcon() { + public function renderMenuEntry() { $this->showIcon(); } } diff --git a/plugins/MCTeam/DonationPlugin.php b/plugins/MCTeam/DonationPlugin.php index e8545585..c5721d9f 100644 --- a/plugins/MCTeam/DonationPlugin.php +++ b/plugins/MCTeam/DonationPlugin.php @@ -532,7 +532,7 @@ class DonationPlugin implements CallbackListener, CommandListener, Plugin, Sideb $this->maniaControl->getManialinkManager()->displayWidget($maniaLink, $player, 'TopDons'); } - public function renderMenuIcon() { + public function renderMenuEntry() { $this->displayDonateWidget(); } }