From 5d185a7d92d3c508ea0d37ee476365415ab68196 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Sat, 6 Oct 2018 17:21:28 +0200 Subject: [PATCH] Fix variable name See #2545 --- .../AbstractOptionPackageInstallationPlugin.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wcfsetup/install/files/lib/system/package/plugin/AbstractOptionPackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/AbstractOptionPackageInstallationPlugin.class.php index 643f8aa94b..428011fabf 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/AbstractOptionPackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/AbstractOptionPackageInstallationPlugin.class.php @@ -806,18 +806,18 @@ abstract class AbstractOptionPackageInstallationPlugin extends AbstractXMLPackag $optionHandler->init(); // only consider categories of relevant packages - $vrelevantPackageIDs = array_merge( + $relevantPackageIDs = array_merge( [$this->installation->getPackage()->packageID], array_keys($this->installation->getPackage()->getAllRequiredPackages()) ); - $buildSortedCategories = function($parentCategories) use ($vrelevantPackageIDs, &$buildSortedCategories) { + $buildSortedCategories = function($parentCategories) use ($relevantPackageIDs, &$buildSortedCategories) { $categories = []; foreach ($parentCategories as $categoryData) { /** @var OptionCategory $category */ $category = $categoryData['object']; - if (in_array($category->packageID, $vrelevantPackageIDs)) { + if (in_array($category->packageID, $relevantPackageIDs)) { $categories[$category->categoryName] = $category; $categories = array_merge($categories, $buildSortedCategories($categoryData['categories'])); -- 2.20.1