Mercurial > hg > webaudioevaluationtool
changeset 3124:8bef85957a2f
YAUC
author | Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk> |
---|---|
date | Wed, 18 Jul 2018 17:00:08 +0100 |
parents | c7de85e03321 |
children | f80f43a2da99 |
files | php/config.php |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/php/config.php Wed Jul 18 16:53:38 2018 +0100 +++ b/php/config.php Wed Jul 18 17:00:08 2018 +0100 @@ -1,14 +1,14 @@ <?php function getSaveLocation() { - if (isset($_ENV["WAET_SAVES_LOCATION"])) { - return $_ENV["WAET_SAVES_LOCATION"]; + if (isset(getenv(["WAET_SAVES_LOCATION"]))) { + return getenv(["WAET_SAVES_LOCATION"]); } else { return "../saves/"; } } function getTestLocation() { - if (isset($_ENV["WAET_TEST_LOCATION"])) { - return $_ENV["WAET_TEST_LOCATION"]; + if (isset(getenv(["WAET_TEST_LOCATION"]))) { + return getenv(["WAET_TEST_LOCATION"]); } else { return "../tests/"; }