Skip to content

Commit

Permalink
Test $_ENV rather than using define
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-1-anderson committed Jun 7, 2017
1 parent 661645f commit a84f326
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/file.inc
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ function file_ensure_htaccess() {
* already present. Defaults to FALSE.
*/
function file_create_htaccess($directory, $private = TRUE, $force_overwrite = FALSE) {
if (defined('PANTHEON_ENVIRONMENT')) {
if (isset($_ENV('PANTHEON_ENVIRONMENT')) {
// Skip on Pantheon since we use nginx and this can hang.
return;
}
Expand Down

0 comments on commit a84f326

Please sign in to comment.