comparison php/config.php @ 3124:8bef85957a2f

YAUC
author Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk>
date Wed, 18 Jul 2018 17:00:08 +0100
parents 53d701288da5
children f80f43a2da99
comparison
equal deleted inserted replaced
3123:c7de85e03321 3124:8bef85957a2f
1 <?php 1 <?php
2 function getSaveLocation() { 2 function getSaveLocation() {
3 if (isset($_ENV["WAET_SAVES_LOCATION"])) { 3 if (isset(getenv(["WAET_SAVES_LOCATION"]))) {
4 return $_ENV["WAET_SAVES_LOCATION"]; 4 return getenv(["WAET_SAVES_LOCATION"]);
5 } else { 5 } else {
6 return "../saves/"; 6 return "../saves/";
7 } 7 }
8 } 8 }
9 function getTestLocation() { 9 function getTestLocation() {
10 if (isset($_ENV["WAET_TEST_LOCATION"])) { 10 if (isset(getenv(["WAET_TEST_LOCATION"]))) {
11 return $_ENV["WAET_TEST_LOCATION"]; 11 return getenv(["WAET_TEST_LOCATION"]);
12 } else { 12 } else {
13 return "../tests/"; 13 return "../tests/";
14 } 14 }
15 } 15 }
16 ?> 16 ?>