From 099a7307e3ede76a1f830c25b0790ebe27a8c773 Mon Sep 17 00:00:00 2001 From: Martin Ambrus Date: Wed, 25 Oct 2017 14:54:23 +0200 Subject: [PATCH] fix: new DB class to consider installation --- GameEngine/Database.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/GameEngine/Database.php b/GameEngine/Database.php index bdeda69e..528c3b8e 100755 --- a/GameEngine/Database.php +++ b/GameEngine/Database.php @@ -25,6 +25,10 @@ if (substr(getcwd(), -4) === 'Mods') { $src_prefix = '../../../'; } +if (substr(getcwd(), -7) === 'include') { + $src_prefix = '../../'; +} + include_once("config.php"); include_once($src_prefix."src/Database/IDbConnection.php"); include_once($src_prefix."src/Utils/Math.php");