Skip to content

Commit

Permalink
Merge pull request #179 from hdp617/master
Browse files Browse the repository at this point in the history
fix: use GAE_APPLICATION env var in ProtoBuf gateway
  • Loading branch information
tomwalder authored Dec 7, 2020
2 parents 05f8019 + 5d8a8cb commit d00b41a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/GDS/Gateway/ProtoBuf.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ public function __construct($str_dataset = null, $str_namespace = null)
if(null === $str_dataset) {
if(isset($_SERVER['APPLICATION_ID'])) {
$this->str_dataset_id = $_SERVER['APPLICATION_ID'];
} else {
} elseif (isset($_SERVER['GAE_APPLICATION'])) {
$this->str_dataset_id = $_SERVER['GAE_APPLICATION'];
} else {
throw new \Exception('Could not determine DATASET, please pass to ' . get_class($this) . '::__construct()');
}
} else {
Expand Down

0 comments on commit d00b41a

Please sign in to comment.