Skip to content

Commit d00b41a

Browse files
authored
Merge pull request #179 from hdp617/master
fix: use GAE_APPLICATION env var in ProtoBuf gateway
2 parents 05f8019 + 5d8a8cb commit d00b41a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/GDS/Gateway/ProtoBuf.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ public function __construct($str_dataset = null, $str_namespace = null)
6767
if(null === $str_dataset) {
6868
if(isset($_SERVER['APPLICATION_ID'])) {
6969
$this->str_dataset_id = $_SERVER['APPLICATION_ID'];
70-
} else {
70+
} elseif (isset($_SERVER['GAE_APPLICATION'])) {
71+
$this->str_dataset_id = $_SERVER['GAE_APPLICATION'];
72+
} else {
7173
throw new \Exception('Could not determine DATASET, please pass to ' . get_class($this) . '::__construct()');
7274
}
7375
} else {

0 commit comments

Comments
 (0)