Verified Commit ecc9cf94 authored by Tim Diels's avatar Tim Diels Committed by Alberto Paderno
Browse files

Issue #3285062 by tim-diels: config_tools_requirements() sets the wrong array index

parent 0fa2b235
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -22,7 +22,7 @@ function config_tools_requirements($phase) {
    catch (GitException $gitException) {
      $requirements['git_executable']['title'] = new TranslatableMarkup('Git executable');
      $requirements['git_executable']['value'] = new TranslatableMarkup('Not found');
      $requirements['git']['description'] = new TranslatableMarkup(
      $requirements['git_executable']['description'] = new TranslatableMarkup(
        "The %class class isn't able to find the Git executable, which is required from the %module module.",
        ['%class' => GitWrapper::class, '%module' => 'Configuration Tools']
      );
@@ -37,9 +37,7 @@ function config_tools_requirements($phase) {
      "The required %library library has been installed and it was able to find the Git executable required from the %module module.",
      ['%library' => 'cpliakas/git-wrapper', '%module' => 'Configuration Tools']
    );
    $requirements['git_executable']['severity'] = REQUIREMENT_OK;


    $requirements['git_wrapper_library']['severity'] = REQUIREMENT_OK;
  }
  else {
    $requirements['git_wrapper_library']['title'] = new TranslatableMarkup('%library library', ['%library' => 'cpliakas/git-wrapper']);