Skip to content

Commit 027636f

Browse files
committed
Adding database config
1 parent 79bcc9d commit 027636f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

inc/databaseConn.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@
99
////////////////////////////////////////////////////////////////////////////
1010

1111
// Bring in the config data
12-
require_once dirname(__FILE__) . "/config.php";
12+
if (file_exists(dirname(__FILE__) . "/config.php")) {
13+
require_once dirname(__FILE__) . "/config.php";
14+
} else {
15+
require_once dirname(__FILE__) . "/config.env.php";
16+
}
1317

1418

1519
// There is no better place to put this, as all pages require this file.

0 commit comments

Comments
 (0)