Skip to content

Commit

Permalink
[BUGFIX] Return correct available package information
Browse files Browse the repository at this point in the history
The PackageManager needs to scan over all package location to be able
to decide whether a package is available or not.

Resolves: #83531
Releases: master, 8.7
Change-Id: Ib21c18a559b4c02d8efce146c8d5addf66b25f1f
Reviewed-on: https://review.typo3.org/55355
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
  • Loading branch information
IchHabRecht authored and lolli42 committed Jan 14, 2018
1 parent dc5a7f9 commit a04d91a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions typo3/sysext/core/Classes/Package/PackageManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,11 @@ public function getPackage($packageKey)
*/
public function isPackageAvailable($packageKey)
{
// If activePackages is empty, the PackageManager is currently initializing
// thus packages should not be scanned
if (!$this->availablePackagesScanned && !empty($this->activePackages)) {
$this->scanAvailablePackages();
}
if (isset($this->packageAliasMap[$lowercasedPackageKey = strtolower($packageKey)])) {
$packageKey = $this->packageAliasMap[$lowercasedPackageKey];
}
Expand Down

0 comments on commit a04d91a

Please sign in to comment.