comparison php/config.php @ 3125:f80f43a2da99

YAUC
author Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk>
date Wed, 18 Jul 2018 17:02:24 +0100
parents 8bef85957a2f
children a543efc6ef1d
comparison
equal deleted inserted replaced
3124:8bef85957a2f 3125:f80f43a2da99
1 <?php 1 <?php
2 function getSaveLocation() { 2 function getSaveLocation() {
3 if (isset(getenv(["WAET_SAVES_LOCATION"]))) { 3 if (getenv(["WAET_SAVES_LOCATION"]) !== false) {
4 return getenv(["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(getenv(["WAET_TEST_LOCATION"]))) { 10 if (getenv(["WAET_TEST_LOCATION"]) !== false) {
11 return getenv(["WAET_TEST_LOCATION"]); 11 return getenv(["WAET_TEST_LOCATION"]);
12 } else { 12 } else {
13 return "../tests/"; 13 return "../tests/";
14 } 14 }
15 } 15 }