1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 05:50:42 +02:00

[ticket/11150] Enforce enable on install and purge on remove options

PHPBB3-11150
This commit is contained in:
Tristan Darricau
2015-09-15 12:33:19 +02:00
committed by Tristan Darricau
parent 8f1d254191
commit 46972aa4c7
6 changed files with 125 additions and 18 deletions

View File

@@ -222,9 +222,11 @@ class installer
foreach ($installed_packages as $package)
{
if (array_key_exists($package->getName(), $required_links) && in_array($package->getType(), $types, true))
if (in_array($package->getType(), $types, true))
{
$installed[$package->getName()] = $required_links[$package->getName()]->getPrettyConstraint();
$version = array_key_exists($package->getName(), $required_links) ?
$required_links[$package->getName()]->getPrettyConstraint() : '*';
$installed[$package->getName()] = $version;
}
}