From 4658d1cb29054ab957f68c384d502c9fabea9581 Mon Sep 17 00:00:00 2001 From: slawkens Date: Tue, 19 Nov 2024 14:03:49 +0100 Subject: [PATCH] More obvious name for parameter in -> installMenus --- system/libs/plugins.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/system/libs/plugins.php b/system/libs/plugins.php index c165b159..15e6ccdc 100644 --- a/system/libs/plugins.php +++ b/system/libs/plugins.php @@ -411,9 +411,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) { global $db; @@ -427,9 +427,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;