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

[ticket/11150] Disable if directories not writable

PHPBB3-11150
This commit is contained in:
Tristan Darricau
2015-09-15 14:48:21 +02:00
committed by Tristan Darricau
parent 0a809fb90e
commit cc0a762866
11 changed files with 82 additions and 16 deletions

View File

@@ -71,6 +71,13 @@ class update extends \phpbb\console\command\command
$output->getFormatter()->setStyle('warning', new OutputFormatterStyle('black', 'yellow'));
$io = new SymfonyStyle($input, $output);
if (!$this->manager->check_requirements())
{
$io->error($this->language->lang('EXTENSIONS_COMPOSER_NOT_WRITABLE'));
return 1;
}
$composer_io = new console_io($input, $output, $this->getHelperSet(), $this->language);
$extensions = $input->getArgument('extensions');