comparison php/config.php @ 3126:a543efc6ef1d

YAUC!
author Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk>
date Wed, 18 Jul 2018 17:04:53 +0100
parents f80f43a2da99
children
comparison
equal deleted inserted replaced
3125:f80f43a2da99 3126:a543efc6ef1d
1 <?php 1 <?php
2 function getSaveLocation() { 2 function getSaveLocation() {
3 if (getenv(["WAET_SAVES_LOCATION"]) !== false) { 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 (getenv(["WAET_TEST_LOCATION"]) !== false) { 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 }
16 ?> 16 ?>