phpBB

Code Changes

File: phpbb/console/command/extension/disable.php

  Unmodified   Added   Modified   Removed
Line 37Line 37
		$io = new SymfonyStyle($input, $output);

$name = $input->getArgument('extension-name');

		$io = new SymfonyStyle($input, $output);

$name = $input->getArgument('extension-name');

 

if (!$this->manager->is_enabled($name))
{
$io->error($this->user->lang('CLI_EXTENSION_DISABLED', $name));
return 2;
}


		$this->manager->disable($name);
$this->manager->load_extensions();


		$this->manager->disable($name);
$this->manager->load_extensions();


Line 48Line 55
		else
{
$this->log->add('admin', ANONYMOUS, '', 'LOG_EXT_DISABLE', time(), array($name));

		else
{
$this->log->add('admin', ANONYMOUS, '', 'LOG_EXT_DISABLE', time(), array($name));

 
			$this->check_apcu_cache($io);

			$io->success($this->user->lang('CLI_EXTENSION_DISABLE_SUCCESS', $name));
return 0;
}

			$io->success($this->user->lang('CLI_EXTENSION_DISABLE_SUCCESS', $name));
return 0;
}