Skip to content

Commit

Permalink
Get show omens token from ENV variable
Browse files Browse the repository at this point in the history
  • Loading branch information
back-2-95 committed Aug 4, 2020
1 parent 7234ed4 commit 70aceb2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/DrupalEnvDetector.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,10 @@ public function getConfiguration() : array {
$conf['config_directories'] = (array) $this->config_directories;
}

if (isset($_GET['_show_omens']) && $_GET['_show_omens'] == 'bakra-hispul') {
$this->printConfiguration($conf);
if (getenv('OMEN_TOKEN') && isset($_GET['_show_omens'])) {
if ($_GET['_show_omens'] == getenv('OMEN_TOKEN')) {
$this->printConfiguration($conf);
}
}

return $conf;
Expand Down

0 comments on commit 70aceb2

Please sign in to comment.