From 57576e09ed0897f414a48491c14a8abc842a095d Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Tue, 8 Dec 2015 19:53:01 +0100 Subject: [PATCH] Avoid problems with wrong configured server variables --- boot.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/boot.php b/boot.php index 6759e805f2..05a334a1fa 100644 --- a/boot.php +++ b/boot.php @@ -635,13 +635,13 @@ if(! class_exists('App')) { $basepath = get_config("system", "basepath"); if ($basepath == "") - $basepath = $_SERVER["DOCUMENT_ROOT"]; + $basepath = dirname(__FILE__); if ($basepath == "") - $basepath = $_SERVER["PWD"]; + $basepath = $_SERVER["DOCUMENT_ROOT"]; if ($basepath == "") - $basepath = dirname(__FILE__); + $basepath = $_SERVER["PWD"]; return($basepath); } -- 2.39.5