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:
committed by
Tristan Darricau
parent
8f1d254191
commit
46972aa4c7
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user