Skip to content

Commit

Permalink
Fix link check. Update validator translation string (#3826)
Browse files Browse the repository at this point in the history
  • Loading branch information
LOBsTerr authored and jmolivas committed Mar 21, 2018
1 parent adb8174 commit 65f9633
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Extension/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ public function checkExtensions(array $extensions, $type = 'module')
} else {
try {
$response = $this->httpClient->head('https://www.drupal.org/project/' . $extension);
$header_link = explode(';', $response->getHeader('link'));
$header_link = $response->getHeader('link');
if (empty($header_link[0])) {
$checkextensions['no_extensions'][] = $extension;
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/Utils/Validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ public function validateExtensions($extensions_list, $type, DrupalStyle $io)
if (!empty($checked_extensions['no_extensions'])) {
$io->warning(
sprintf(
$this->translatorManager->trans('validator.warnings.extension-unavailable'),
$this->translatorManager->trans('commands.generate.module.warnings.module-unavailable'),
implode(', ', $checked_extensions['no_extensions'])
)
);
Expand Down

0 comments on commit 65f9633

Please sign in to comment.