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 @@ -634,15 +634,15 @@ if(! class_exists('App')) { $basepath = get_config("system", "basepath"); + if ($basepath == "") + $basepath = dirname(__FILE__); + if ($basepath == "") $basepath = $_SERVER["DOCUMENT_ROOT"]; if ($basepath == "") $basepath = $_SERVER["PWD"]; - if ($basepath == "") - $basepath = dirname(__FILE__); - return($basepath); }