[ticket/14492] Only show fail of extension install if it's available

PHPBB3-14492
This commit is contained in:
Marc Alexander 2016-02-29 11:31:33 +01:00
parent 67c3bd4a90
commit e519b21b2e
No known key found for this signature in database
GPG key ID: 50E0D2423696F995

View file

@ -125,13 +125,13 @@ class install_extensions extends \phpbb\install\task_base
// Create log // Create log
$this->log->add('admin', ANONYMOUS, '', 'LOG_EXT_ENABLE', time(), array($ext_name)); $this->log->add('admin', ANONYMOUS, '', 'LOG_EXT_ENABLE', time(), array($ext_name));
} }
}
else else
{ {
$this->iohandler->add_log_message(array('CLI_EXTENSION_ENABLE_FAILURE', $ext_name)); $this->iohandler->add_log_message(array('CLI_EXTENSION_ENABLE_FAILURE', $ext_name));
} }
} }
} }
}
/** /**
* {@inheritdoc} * {@inheritdoc}