From afb055f2dcec3eb3b604a462200bbcaf3aaf0786 Mon Sep 17 00:00:00 2001 From: slawkens Date: Tue, 19 Nov 2024 14:21:15 +0100 Subject: [PATCH] More obvious name for parameter in -> installMenus --- system/src/Plugins.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/system/src/Plugins.php b/system/src/Plugins.php index 6e518b48..00515139 100644 --- a/system/src/Plugins.php +++ b/system/src/Plugins.php @@ -766,9 +766,9 @@ class Plugins { * Helper function for plugins * * @param string $templateName - * @param array $categories + * @param array $menus */ - public static function installMenus($templateName, $categories, $clearOld = false) + public static function installMenus($templateName, $menus, $clearOld = false) { if ($clearOld) { Menu::where('template', $templateName)->delete(); @@ -778,9 +778,9 @@ class Plugins { return; } - foreach ($categories as $category => $menus) { + foreach ($menus as $category => $_menus) { $i = 0; - foreach ($menus as $name => $link) { + foreach ($_menus as $name => $link) { $color = ''; $blank = 0;