1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-02 06:51:08 +02:00

[ticket/11150] Correctly enable/purge extensions

PHPBB3-11150
This commit is contained in:
Tristan Darricau
2015-09-17 09:37:18 +02:00
committed by Tristan Darricau
parent 60086b5c41
commit fc1d79cf47
2 changed files with 4 additions and 4 deletions

View File

@@ -98,7 +98,7 @@ class extension_manager extends manager
if ($this->enable_on_install) if ($this->enable_on_install)
{ {
$io->writeError([['ENABLING_EXTENSIONS', [], 1]], true); $io->writeError([['ENABLING_EXTENSIONS', [], 1]], true);
foreach ($packages as $package) foreach ($packages as $package => $version)
{ {
try try
{ {
@@ -123,7 +123,7 @@ class extension_manager extends manager
{ {
$io->writeError([['DISABLING_EXTENSIONS', [], 1]], true); $io->writeError([['DISABLING_EXTENSIONS', [], 1]], true);
$this->enabled_extensions = []; $this->enabled_extensions = [];
foreach ($packages as $package) foreach ($packages as $package => $version)
{ {
try try
{ {
@@ -193,7 +193,7 @@ class extension_manager extends manager
$io->writeError([['DISABLING_EXTENSIONS', [], 1]], true); $io->writeError([['DISABLING_EXTENSIONS', [], 1]], true);
} }
foreach ($packages as $package) foreach ($packages as $package => $version)
{ {
try try
{ {

View File

@@ -291,7 +291,7 @@ class manager implements manager_interface
return $this->installer->check_requirements(); return $this->installer->check_requirements();
} }
protected function normalize_version($packages) protected function normalize_version(array $packages)
{ {
$normalized_packages = []; $normalized_packages = [];