Skip to content

Commit

Permalink
[WR-832] Update GC migration script
Browse files Browse the repository at this point in the history
  • Loading branch information
infojunkie committed Oct 26, 2022
1 parent f3e0cdd commit feca8a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scripts/migration/gc-drupal.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ function convertGatherContentLinks($text, &$items) {
// Handle the case where $items does not contain the item.
if (!array_key_exists($item_id, $items)) {
print(" Could not find related GatherContent item $item_id locally. Trying GC API..." . PHP_EOL);
$email = $_ENV['GATHERCONTENT_EMAIL'];
$apiKey = $_ENV['GATHERCONTENT_APIKEY'];
$email = getenv('GATHERCONTENT_EMAIL');
$apiKey = getenv('GATHERCONTENT_APIKEY');
$client = new \GuzzleHttp\Client();
$gc = new \Cheppers\GatherContent\GatherContentClient($client);
$gc
Expand Down

0 comments on commit feca8a3

Please sign in to comment.