Skip to content

Commit

Permalink
functions/db.php: fix for when included to another folder (ie /api)
Browse files Browse the repository at this point in the history
  • Loading branch information
cowpod committed Nov 2, 2024
1 parent 66369ea commit 670dc4a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions functions/db.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ function __construct() {
$this->conf = include("./config.php");
} elseif (file_exists("./functions/config.php")) {
$this->conf = include("./functions/config.php");
} elseif (file_exists("../functions/config.php")) {
$this->conf = include("../functions/config.php");
}
if ($this->conf===NULL) {
error_log("db.php: __construct(): Missing config.php?!");
Expand Down

0 comments on commit 670dc4a

Please sign in to comment.